ImageOptim / ImageOptim/ImageOptim
svgcleaner deletes my SVG's content
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 10k
- Forks
- 478
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to shrink an SVG file, but instead of a slightly smaller file, I get one that's functionally empty:


Lossy minification is disabled and I've set the optimization level to Fast to be extra sure.
Here's the original file (zipped because GitHub doesn't do SVG files):
sheet.svg.zip
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the report with the attached sheet.svg.zip, lossy minification disabled, and optimization level set to Fast. Compare the generated SVG with the original and investigate which optimization step removes its content; done means the optimized file remains functionally non-empty while still being reduced.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100