Page MenuHomePhabricator

Provide tools for contributors to optimize SVG files
Open, Needs TriagePublic

Description

SVG files can be svelte and fast, but they can also be huge and overly detailed or inefficiently structured, so a similar appearance can result in either a small or large file.

For performance reasons we want SVGs that we might render client-side T5593 to be small and fast.

Possible automatable tools:

  • display the actual transfer size as modifications are made! (post-gzipped)
  • strip comments/whitespace (minification)
  • trim unnecessary digit precision on coordinates
  • rewriting paths to use fewer points
  • eliminating detail that will never be seen in context

External tools for various optimization tasks:

Event Timeline

brion created this task.May 4 2016, 5:08 PM
Restricted Application added projects: Multimedia, Commons. · View Herald TranscriptMay 4 2016, 5:08 PM
Restricted Application added subscribers: Zppix, Steinsplitter, Aklapper. · View Herald Transcript

At least simple SVGs should be 'optimized' by hand instead of via 'automatable tools' that make them unreadable.
Cf. https://commons.wikimedia.org/wiki/Template:Created_with_Text_Editor

Restricted Application added subscribers: Poyekhali, Matanya. · View Herald TranscriptMay 5 2016, 1:13 PM