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

WEBP images are distorted in 8.8.3.28 #1526

Closed
Balzhur opened this issue Mar 30, 2023 · 5 comments
Closed

WEBP images are distorted in 8.8.3.28 #1526

Balzhur opened this issue Mar 30, 2023 · 5 comments

Comments

@Balzhur
Copy link

Balzhur commented Mar 30, 2023

System information:

  • Windows OS version: Win 11 x64
  • ImageGlass version: 8.8.3.28 x64, purchased at Windows Store

To Reproduce

Steps to reproduce the behavior:

  1. Open any WEBP image, zoom to 100%
  2. Compare to the same image opened in Firefox, Chrome, Edge or any other image viewer

Actual behavior:

Image opened in ImageGlass looks distorted.
I'm using "High-quality, bicubic" zoom optimization, switching optimization algorithms does not improve the situation.
Images are grainy and distorted. Situation is even worse with animated images.

Expected behavior:

Image zoomed looks smooth and not grainy.

Screenshots:

image

Additional context:

I suspect this is due to "directly using libwebp v1.3.0", previous ImageGlass version did not have this issue.

@Balzhur
Copy link
Author

Balzhur commented Mar 30, 2023

Samle image on screenshot taken from here - 500KB version.

d2phap added a commit that referenced this issue Mar 30, 2023
@d2phap d2phap added this to the v9.0 beta 4 milestone Mar 30, 2023
@Balzhur
Copy link
Author

Balzhur commented Mar 31, 2023

@d2phap, would you fix it in 8.x?

@d2phap
Copy link
Owner

d2phap commented Apr 2, 2023

It's fixed in v9 branch and will be included in v9.0 beta 4. However, it requires a lot of work for v8 to do the same, so I added a fall-back feature that it will use MagickNET to load animated WEBP (as same as v8.7) if the libwebp.dll is not found.

It means, you will just delete libwebp.dll to use the animated WEBP function from v8.7. The new update will be released by 4/4.

@d2phap
Copy link
Owner

d2phap commented Apr 4, 2023

I released v8.8.4.4 which you can just delete the libwebp.dll to use the MagickNET's animated WebP. ImageGlass 8.8 converts WebP frames to Gif format to use Gif animator, that's why it loses the quality.

It's totally fixed in v9.0 beta 4 which will be also released soon. WebP frames are directly rendered using the GPU without converting to Gif format, resulting in a significant performance boost.

@d2phap d2phap closed this as completed Apr 4, 2023
@Balzhur
Copy link
Author

Balzhur commented Apr 4, 2023

Thank you. Workaround (deleting libwebp.dll) works as expected in 8.8.4.4. Non-animated WEBP images are also displayed properly.
As for 9.x beta branch - well, if you kindly fix the settings editing from the GUI, it would be usable, for now it's too much hassle to tinker with config file, at least for me.

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

No branches or pull requests

2 participants