question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compress an SVG error?

See original GitHub issue

I’m getting a CI error on https://github.com/mdn/content/pull/4505 asking me to run --save-compression on and SVG. That’s a bug right?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
peterbecommented, Apr 28, 2021

I would prefer to keep this with the docs. Could we make an exception for SVGs? Or perhaps have a rule that says a file under /uncompressed/ subfolder can exist uncompressed for exceptions?

Mayhaps. Probably not quickly. I think we can start a chat about treating SVGs differently but if you want to get your content PR landed I think it’s best to run the compression now and get CI to pass. Then, we can discuss changing the rules for .svg files. Does that make sense?

0reactions
hamishwilleecommented, Apr 30, 2021

I am closing this, as it is not an error but a feature. SVGs are still editable even if compressed, so my justification for not wanting to compress is gone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

World's Best SVG Compressor - Vecta.io
World's best SVG compressor that minifies SVG up to 80% on average, when gzipped. Automatically scans and embed fonts, plus convert SVG to...
Read more >
How to optimize and reduce the file size of SVG images
Every single possible way to trim SVG file size · First ensure they share the exact same coordinate. · Unite the entire shape...
Read more >
SVGZ gives encoding error - Stack Overflow
The client is actually unable to understand when the server re-compressed the content and when not. The possible solutions are: disable static ...
Read more >
Compress SVG Images with High output Quality OnLine
Compress SVG images. Free online SVG image optimizer. Compress your SVG images a modern browser like Chrome, Opera and Firefox.
Read more >
SVG Minifier
Online SVG Cleaner and Minifier. Remove superfluous cruft and reduce the size of generated SVG files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found