Opened 7 years ago
Last modified 4 years ago
#42953 new defect (bug)
Created images have a larger filesize than the original
Reported by: | aristath | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description
Images uploaded in the media library get resized to the defined sizes. However, if the image has been optimized beforehand the result can be that the generated images have a filesize larger than the originally uploaded image.
It can happen due to a very high jpeg_quality
value for example..
This should not happen under any circumstances. Uploading optimized images is something a lot of people do for SEO purposes, and larger generated images affect that negatively.
Sometimes even if the image-size is smaller, the generated file's filesize is bigger.
One solution would be to save the image in a temp location and have its filesize checked against the original image. If the image is smaller than the original one then move to its final location. If not, then some other solution has to be found.
Pretty sure has been reported before in another ticket, I just can't find it right now.