[wp-trac] [WordPress Trac] #30587: SVG and PNG Images in UI Should Be Optimized
WordPress Trac
noreply at wordpress.org
Fri Jan 6 04:26:43 UTC 2017
#30587: SVG and PNG Images in UI Should Be Optimized
------------------------------+-----------------------------
Reporter: ckoerner | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+-----------------------------
Comment (by netweb):
Via https://core.trac.wordpress.org/ticket/39471#comment:4
> The svg-optimiser tool compresses slightly better than `imagemin`,
(1.1KB vs 1.3KB on wordpress-logo.svg) but it does so by rounding co-
ordinates and path lengths. I really don't like changing the actual image
data, and `imagemin` can be configured to do that if we really wanted to
explore that option.
>
> Tinypng saved 60 bytes over `imagemin` on `wordpress-logo.png`, which
totally isn't worth it.
>
> I'm cool with investigating tweaking the `imagemin` options, but
switching to external, manually run tools is not my idea of a fun time.
>
> The best option is to fix #30587, and then see if there are any
`imagemin` options we can tweak that don't cause image quality loss.
Here's the list of available imagemin SVG options:
https://github.com/svg/svgo#what-it-can-do
Details on how to use SVG options with imagemin:
https://github.com/imagemin/imagemin-svgo#usage
Anyone have an idea of what SVG imagemin options we should and should not
use?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30587#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list