Full WebP, AVIF support for Xenforo 2 with XenVn addon

Full WebP, AVIF support for Xenforo 2 with XenVn addon

  • Thread starter Thread starter xenvn
  • Start date Start date
Full-WebP-support-for-Xenforo-2-with-XenVn-addon.webp


WebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster.

AVIF is an image format based on the AV1 video codec, and standardized by the Alliance for Open Media. AVIF offers significant compression gains over other image formats like JPEG and WebP. While the exact savings will depend on the content, encoding settings, and quality target, we and others have seen greater than 50% savings vs. JPEG.

The GD library does not support WebP animations. Imagemagick does, but needs enough library support.

XenVn-IMG_0315.webp


With XenVn, WebP will be perfectly supported for image attachments, avatars, user banners and resource icons.
WEPB is currently supported in most PHP versions. AVIF will require PHP version from 8.2 and the AVIF library.



Full WebP, AVIF support for Xenforo 2 with XenVn addon.webp


XenVn Setting -> Attachments:
Convert Images To WebP

Automatically convert all image attachments to WebP format when uploaded (rebuild Convert Images To WebP).

Using WebP for Image Data
Use WebP for attachment thumbnails, user avatars, profile banners, resource icons (force rebuild Attachment Thumbnails, User Avatars, Resource Icons)

Full-WebP-support-for-Xenforo-2-with-XenVn-addon-2.webp


Tools -> Rebuild caches:
[XenVn] Convert Images To WebP

Convert all image attachments to Webp format (cannot be undone).

[XenVn] Rebuild Attachment Thumbnails
Rebuild attachment thumbnails with WebP support.

[XenVn] Rebuild User Avatars, Banners
Rebuild user avatars, banners with WebP support.

[XenVn] Rebuild Resource Icons
Rebuild resource icons with WebP support

Full-WebP-support-for-Xenforo-2-with-XenVn-addon-5.webp


100% uses WebP format, no JPG, no PNG.

Full-WebP-support-for-Xenforo-2-with-XenVn-addon-3.webp Full-WebP-support-for-Xenforo-2-with-XenVn-addon-4.webp
 
Last edited:
A small suggestion: XFRM resource discussion thread can directly use the resource icon as the square thumbnail instead of using the attachment in the thread.
 
Is this option removed in beta 10?
 

Please read the information before asking.
 

Please read the information before asking.
There is nothing mentioned about add or removed AVIF feature
 
AVIF will automatically switch to WEBP if the server supports it.
Thanks I found that on XenVn Beta 10 Resources icon is not converting webp and webp can't be uploaded as resources icon.
 
File name allway is ***.jpg (avatar, banner, resource icon).
but it is webp image.
Untitled.webp
 
File name allway is ***.jpg (avatar, banner, resource icon).
but it is webp image.
Untitled.webp
What about the upload webp as a resource icon?

on XV 1.9.6.2 there is no such issue like that.
 
Similar threads Most view View more
Back
Top Bottom