-
Notifications
You must be signed in to change notification settings - Fork 378
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
Generated image is 44 times heavier than original image #1104
Comments
Well, I still have a ~4.7 MB image even if Kraken optimization is disabled. We tried |
We also tried to setup mozjpeg post processor, but generated images are horrible to look and still heavier than original images... Do someone of you @lsmith77 @makasim @robfrawley have an idea about this problem? Many thanks. |
@Kocal Have you tried to resize that particular image in GD/Imagick without any libraries at all, purely in PHP? How does the result of that compare to what Liip has generated? |
Have you tried pngquant Post processor? Maybe your original image was optimized with that. That would explain a 2-4 bigger new image. If you want to get the even more bytes squeezed out, use zopflipng (after pngquant), but that may be slow. No idea about GD though. |
@veloxy Oh good point! No we didn't, but I will check it out monday. @chregu For now, the only post processor we tried was mozjpeg for JPEG files, but results were bad because of double-optimization (Kraken & Mozjpeg). |
A "few" Mondays have passed, what did you finally do ? |
Hi, I don't really remember well but we still use the bundle with the https://kraken.io/ API for the optimization. I don't know if we always have the problem. |
Today at work, one of our web integrator tell us about a problem about very VERY VERY heavy images.
After manual testings, we found out that the problem comes from this bundle.
In our CMS, we can switch the use of
imagine_filter
Twig filter. When the filter is used, the generated images are way too heavy in comparison of their original images.So since we were running a old version (1.5.3), we tried to update to 1.9, then to 2.0 but the problem is still here.
Preconditions
This is an extract of our config file:
Steps to reproduce
Sw1500
will wide images to 1500 pixels)This is how we call the Twig filter:
This is the image that I will upload:
This is the same image, but after upload and Kraken optimization:
So at the final, the original image weight ~100 kB.
Expected result
Actual result
When our image is passing to filter
Sw1500
, the generated image is too much heavy:We don't understand why this thing happens.
The original image has a width of 1366px. Upscaling it to 1500px can't make it soo heavy, right?
At the moment, we didn't try to change the driver (from GD to Imagemagick), or to change built-in processors...
We will try tomorrow and see if it's better.
... Maybe Kraken is doing some strange things to the image, I will disable it and see if it do something.
Thanks!
The text was updated successfully, but these errors were encountered: