plan2net / webp

Create a WebP copy for images (TYPO3 CMS)
GNU General Public License v3.0
60 stars 34 forks source link

False "is larger than the original" output #51

Closed createdwithlove closed 2 years ago

createdwithlove commented 3 years ago

Just found a strange behaviour with .webp files generated (about 30% smaller than .jpg ones), but the log says:

[WARNING] request="4bf03a46d6722" component="Plan2net.Webp.EventListener.AfterFileProcessing": Converted file (/www/htdocs/xxx.de/public/media/_processed_/3/d/csm_image.jpg.webp) is larger than the original (/www/htdocs/xxx.de/public/media/_processed_/3/d/csm_image.jpg)! Will not retry with this configuration!

The .jpg.webp files are generated as expected und the filesize is definitely smaller compared to originals.

TYPO3 10.4.17 with EXT:webp 3.1.1 on

xerc commented 2 years ago

fyi/ this message was used twice; https://github.com/plan2net/webp/pull/58/commits/7c40184338492e0f7b914b0d71ab95ba2c891546

wazum commented 2 years ago

@createdwithlove can't reproduce this, but I updated the error messages (unique and with more information), please test with the latest version 4.1.2 and open a new issue if the problem occurs again (with more information).