Last modified: 2014-09-17 21:29:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65491, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63491 - Embedded SVG files should be optimized in ResourceLoader/CSSMin
Embedded SVG files should be optimized in ResourceLoader/CSSMin
Status: RESOLVED DUPLICATE of bug 34812
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.23.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 57777
  Show dependency treegraph
 
Reported: 2014-04-03 17:07 UTC by Tisza Gergő
Modified: 2014-09-17 21:29 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tisza Gergő 2014-04-03 17:07:53 UTC
SVG files embedded into CSS should be passed through svgo [1] or some similar SVG minification software first, to reduce size. (Ideally the same should happen for non-embedded files, but that seems more complicated.) Per [2], size reduction can be as much as 90%.


[1] https://github.com/svg/svgo
[2] https://gerrit.wikimedia.org/r/#/c/103894/
Comment 1 Bartosz Dziewoński 2014-04-03 17:12:26 UTC
SVGO is too buggy to use transparently in its current version (see the long history of the patch you linked and https://gerrit.wikimedia.org/r/#/c/106506/ ). 

Related: bug 59744.
Comment 2 Ryan Kaldari 2014-06-27 00:25:04 UTC
What about using SVGO plus a post-processing script to fix the bugs? Right now, a lot of teams are minifying their SVGs locally, which not only makes them harder to edit later, but breaks the SVGs in many cases.
Comment 3 Bartosz Dziewoński 2014-06-29 20:02:37 UTC
I don't think it's possible to write a script to recover information incorrectly deleted by svgo, we should rather fix its bugs.
Comment 4 Bartosz Dziewoński 2014-09-17 21:29:31 UTC

*** This bug has been marked as a duplicate of bug 34812 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links