Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

animated .webp images error when uploaded #672

Open
RealAngeleno opened this issue Feb 14, 2024 · 7 comments
Open

animated .webp images error when uploaded #672

RealAngeleno opened this issue Feb 14, 2024 · 7 comments
Labels

Comments

@RealAngeleno
Copy link

Failed to resize image! Details: gm convert: No data returned (/tmp/phpotgB36).

There are a lot of ways to fix this all in /inc/image.php but unsure of the best way to do so.

@crazy4cars69
Copy link

why even implement it? .gif is used for animated images and so can .png too. Also didn't webp recently have CVE exploit to track users who viewed .webp image?

@Zankaria
Copy link

.gif has a limited color palet and .webp supports better lossless compression than png.
As for CVEs, have there ever been an image which has never suffered an exploit?

@perdedora
Copy link
Member

I was able to generate animated webp using ffmpeg, it's not ideal but works.
Apparently convert support resize, tested on my machine and it works. Going to give a try later in image.php
ImageMagick/ImageMagick#6351 (comment)

convert source.webp -coalesce -resize WxH destination.webp

@crazy4cars69
Copy link

.webpshit is worthless, return to tradition(aka .gif).

@Zankaria
Copy link

.webpshit is worthless, return to tradition(aka .gif).

.gif has a limited color palet and .webp supports better lossless compression than png.

@perdedora
Copy link
Member

.webpshit is worthless, return to tradition(aka .gif).

Since all major browsers supports it, I've changed our thumbnails and static files to webp. Webp + lazy loading made a huge difference in speed.
And on the plus size: file size are smaller and no loses in quality.

@perdedora
Copy link
Member

I was able to generate animated webp using ffmpeg, it's not ideal but works. Apparently convert support resize, tested on my machine and it works. Going to give a try later in image.php ImageMagick/ImageMagick#6351 (comment)

convert source.webp -coalesce -resize WxH destination.webp

Yeah, it worked but with a few tweaks tho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants