ImageOptim / ImageOptim/ImageOptim

svgcleaner deletes my SVG's content

Open
#309 0 comments 1 reaction 0 assignees View on GitHub

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:
Screenshot 2020-01-15 at 15 31 17
image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.