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

PNG filesize is 10 times photoshop #324

Open
stuartcusackie opened this issue May 28, 2021 · 1 comment
Open

PNG filesize is 10 times photoshop #324

stuartcusackie opened this issue May 28, 2021 · 1 comment

Comments

@stuartcusackie
Copy link

stuartcusackie commented May 28, 2021

Hey, I was hoping to use webp for everything but webp creates blurry artefacts when using clipart style imagery.

So instead, I am allowing users to use PNG in some cases to keep the clipart sharp. Unfortunately an 40kb png exported from photoshop (17kb when run through tinypng.com) becomes 400kb when using glide & GD.

Photoshop (45.4 KB):
full-width-purple-leaf-detail

tinypng.com (17.5 KB):
full-width-purple-leaf-detail

Glide / GD WebP (11 KB) - I can't share webp on github but you will see the artefacts here:
https://pasteboard.co/K40uMoc.webp

Glide / GD PNG (404 KB)
75106466a5f2e930af28713a6d4304d6 (1)

Any ideas?

@stuartcusackie
Copy link
Author

Found the problem...

I was upscaling this particular image from 1100px to 1200px wide, and for some reason that massively increased the PNG size.

Still seems like a bug but I can using 'fit' => 'max' to avoid it.

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

No branches or pull requests

1 participant