[wp-trac] [WordPress Trac] #36477: Responsive images(srcset) feature makes images fatter.
WordPress Trac
noreply at wordpress.org
Wed Jul 20 17:08:27 UTC 2016
#36477: Responsive images(srcset) feature makes images fatter.
-------------------------------------+-----------------------------
Reporter: peterdavehello | Owner: joemcgill
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: Future Release
Component: Media | Version: 4.4.2
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: performance
-------------------------------------+-----------------------------
Changes (by codex-m):
* keywords: needs-patch => has-patch needs-testing
Comment:
@joemcgill I think we can handle this in coming 4.6. The trick is to check
for unique colors before resizing. If its 256 or below, its indexed color
type or already optimized. We implement a file size optimizing filter. In
my test, `FILTER_POINT` works best.
I did several tests and it handles already compressed PNG images very
well. So it means that after resizing, resulting file size is not very
large. Since the number of unique colors will be preserved while not
affecting quality ;)
Let me know what you think. Cheers!
Emerson
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36477#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list