Image Optimizer for XF 2.0

Image Optimizer for XF 2.0 [Paid] 2.1.8

No permission to buy ($29.00)
Do you still get deleted images in latest version? @MattW @Artonn
In the new version, if I want to look at [tl] Image Optimizer: Analyzes at /admin.php?tools/io-analyzes, I get a 404 error.

2024/02/20 14:02:11 [error] 20132#20132: *4683218 open() "/public_html/error/50x.html" failed (2: No such file or directory), client: 138.210.207.87, server: domen.com, request: "GET /admin.php?tools/io-analyzes HTTP/2.0", upstream: "fastcgi://127.0.0.1:9005", host: "domen.com", referrer: "https://domen.com/admin.php?tools/io-logs"

And I also can't understand why 0 bytes
2024-02-20_13-58-54.webp
 
Did you enable the WEBP binary?
Yes, but I have the option "Optimize images on fly?", and WEBP binary does not work when it is enabled, as stated in the settings "NOTE: This processor does not work with Optimize images on fly mode enabled."
 
Yes, but I have the option "Optimize images on fly?", and WEBP binary does not work when it is enabled, as stated in the settings "NOTE: This processor does not work with Optimize images on fly mode enabled."
Try without Webp binary or empty the field for Webp binary path.
 
Save library process into directory (default: ../../public_html/src/addons/Truonglv/ImageOptimizer): ../../public_html/src/addons/Truonglv/ImageOptimizer
../../public_html/src/addons/Truonglv/ImageOptimizer
/scripts/pngquant.sh: line 14: rustc: command not found

Also seeing a lot of this in the logs since updating. I disabled in case it's breaking something.

Content
Old size
New sizeTime (seconds)Log date
attachment_data (#2977)0 bytes0 bytes02 minutes ago
attachment_data (#2991)0 bytes0 bytes02 minutes ago
attachment_data (#2986)0 bytes0 bytes02 minutes ago
avatar (#4411)0 bytes0 bytes02 minutes ago
attachment_data (#2981)0 bytes0 bytes02 minutes ago
attachment_data (#2990)0 bytes0 bytes02 minutes ago
 
Last edited:
I'm reprocessing all my attachments after lowering the file size limit. I'm seeing optimizations individually, but the saved percentage is actually moving lower. odd!
 
I'm reprocessing all my attachments after lowering the file size limit. I'm seeing optimizations individually, but the saved percentage is actually moving lower. odd!
Wait so is it working for you now? Trying to see if the latest build is stable.
 
Hi @truonglv

How does the webp compression work?
I installed the cwebp binary using apt install webp --no-install-recommends but still, the image attachments aren't converted to WebP.

Addon option:
View attachment 298184
Did you ever get this working?
We tested this extensively.

Upload the images, and as soon as this addon "optimized" them, they were deleted from the file system. This was happening before the site moved the attachments to R2, and continued once they were on there:

Example:

View attachment 296828

Uploaded images present in R2

View attachment 296825

Addon optimizes the images per the above log extract.

File then missing:

View attachment 296827
Are you still having issues on your R2 setup or does the latest addon update work now on both R2 and local instances?
 
@truonglv Would it be possible to get webp support where we can post webp images in the WYSIWYG? Would be awesome to copy and paste webp images directly into WYSIWYG. I know it's in the works for 2.3 but for those who want it in 2.2.
 
Bah, I'm getting the 0 bytes issue. Did you guys figure out what this is?
1709575584987.webp
Save library process into directory (default: ../../public_html/src/addons/Truonglv/ImageOptimizer): ../../public_html/src/addons/Truonglv/ImageOptimizer
../../public_html/src/addons/Truonglv/ImageOptimizer
/scripts/pngquant.sh: line 14: rustc: command not found

Also seeing a lot of this in the logs since updating. I disabled in case it's breaking something.

Content
Old size
New sizeTime (seconds)Log date
attachment_data (#2977)0 bytes0 bytes02 minutes ago
attachment_data (#2991)0 bytes0 bytes02 minutes ago
attachment_data (#2986)0 bytes0 bytes02 minutes ago
avatar (#4411)0 bytes0 bytes02 minutes ago
attachment_data (#2981)0 bytes0 bytes02 minutes ago
attachment_data (#2990)0 bytes0 bytes02 minutes ago
In the new version, if I want to look at [tl] Image Optimizer: Analyzes at /admin.php?tools/io-analyzes, I get a 404 error.



And I also can't understand why 0 bytes
View attachment 298520
 
This has also completely stopped since I disabled the addon now:

Code:
XX - - [05/Mar/2024:10:35:29 +0000] "GET /attachments/12-jpeg.825614/ HTTP/2.0" 206 - "https://www.XXX.co.uk/threads/botm-february-2024-uk-special-time-to-vote.476801/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
XX - - [05/Mar/2024:10:35:29 +0000] "GET /attachments/12-jpeg.825614/ HTTP/2.0" 206 - "https://www.XXX.co.uk/threads/botm-february-2024-uk-special-time-to-vote.476801/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
XX - - [05/Mar/2024:10:35:29 +0000] "GET /attachments/12-jpeg.825614/ HTTP/2.0" 206 - "https://www.XXX.co.uk/threads/botm-february-2024-uk-special-time-to-vote.476801/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
XX - - [05/Mar/2024:10:35:29 +0000] "GET /attachments/12-jpeg.825614/ HTTP/2.0" 206 - "https://www.XXX.co.uk/threads/botm-february-2024-uk-special-time-to-vote.476801/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
XX - - [05/Mar/2024:10:35:29 +0000] "GET /attachments/12-jpeg.825614/ HTTP/2.0" 206 - "https://www.XXX.co.uk/threads/botm-february-2024-uk-special-time-to-vote.476801/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
XX - - [05/Mar/2024:10:35:29 +0000] "GET /attachments/12-jpeg.825614/ HTTP/2.0" 206 - "https://www.XXX.co.uk/threads/botm-february-2024-uk-special-time-to-vote.476801/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
XX - - [05/Mar/2024:10:35:29 +0000] "GET /attachments/12-jpeg.825614/ HTTP/2.0" 206 - "https://www.XXX.co.uk/threads/botm-february-2024-uk-special-time-to-vote.476801/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
XX - - [05/Mar/2024:10:35:29 +0000] "GET /attachments/12-jpeg.825614/ HTTP/2.0" 206 - "https://www.XXX.co.uk/threads/botm-february-2024-uk-special-time-to-vote.476801/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
[11:12][root@XXX domlogs]# grep 206 XXX.co.uk-ssl_log | awk '$9=="206" {print $0}' | wc -l
1344431
 
Top Bottom