XF 2.3 Older images and avatars not optimizing when rebuilding cache

cdub

Well-known member
I switched to optimized images and then rebuilt caches but then when I go to download the image or avatar to test it's still the original jpeg.

For an image attachment for AMS I had to delete and reupload the image for it to optimize. Rebuilding caches doesn't seem to be working. Should I open a ticket or is this user error?

I rebuilt caches many times after switching to optimized.
 
You need to do it from the CLI.

Code:
php cmd.php | grep optimi
  xf-rebuild:attachment-optimization             Optimizes attachments to WebP format.
  xf-rebuild:avatar-optimization                 Optimizes avatars to WebP format.
  xf-rebuild:profile-banner-optimization         Optimizes profile banners to WebP format.

Note: it is very slow, and you can't specify multiple processes.

I also haven't done any testing on whether using php GD or imagemagick is faster.
 
You need to do it from the CLI.

Code:
php cmd.php | grep optimi
  xf-rebuild:attachment-optimization             Optimizes attachments to WebP format.
  xf-rebuild:avatar-optimization                 Optimizes avatars to WebP format.
  xf-rebuild:profile-banner-optimization         Optimizes profile banners to WebP format.

Note: it is very slow, and you can't specify multiple processes.

I also haven't done any testing on whether using php GD or imagemagick is faster.
i got the same results from both browser and CLI....i also got bloat by doing CLI but ive got a ticket open and we didnt figure out much so far. fwiw
 
Sound like something I noticed as well:


I found that apparently it doesn't change the avatar name to a .webp but remains a .jpeg? If you view the avatar in a text editor it comes up as a .webP format.

I doesn't make much sense to me and you think it would change the extension name.
 
Back
Top Bottom