[wp-trac] [WordPress Trac] #36477: Responsive images(srcset) feature makes images fatter.
WordPress Trac
noreply at wordpress.org
Mon May 30 20:34:26 UTC 2016
#36477: Responsive images(srcset) feature makes images fatter.
----------------------------+--------------------------
Reporter: peterdavehello | Owner: joemcgill
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.6
Component: Upload | Version: 4.4.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: performance
----------------------------+--------------------------
Comment (by azaozz):
> the resized and smaller images are much larger than the origin image,
especially for the optimized images.
I'm thinking we need a better workflow for people that optimize their
images before uploading them. Currently the steps are:
1. Upload optimized image. WordPress creates non-optimized sub-sizes and
the image meta to go with them.
2. Create images with the exact dimensions like the WordPress sub-sizes.
3. Rename them to match the file names generated by WordPress.
4. Upload the optimized sub-size images with FTP replacing the non-
optimized.
Of course setting GD and Imagick to create optimized images would be best,
but I'm not sure if we can enhance that further.
Another possibility is to make a case with the hosting companies to
install one of the jpeg optimizers (libjpeg/jpegtran?) and add cron job to
scan the uploads directory and optimize the sub-sizes (if they don't do
that already). This will reduce both bandwidth and space usage :)
In WordPress we could probably make the uploader "recognize" when the user
is uploading a sub-size of an image and just replace the file instead of
treating it as a new upload. That will let the users create optimized sub-
sizes and upload them together.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36477#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list