Skip to content

Fix SVG thumbnail rasterization with max decode size (fix fuzzy thumbnails for small SVG files)#1071

Merged
jonoomph merged 1 commit intodevelopfrom
small-svg-thumbnails
May 8, 2026
Merged

Fix SVG thumbnail rasterization with max decode size (fix fuzzy thumbnails for small SVG files)#1071
jonoomph merged 1 commit intodevelopfrom
small-svg-thumbnails

Conversation

@jonoomph
Copy link
Copy Markdown
Member

@jonoomph jonoomph commented May 8, 2026

Fix SVG thumbnail rasterization with max decode size (SVG upscaling for tiny sizes)

-Treat SetMaxDecodeSize as the rasterization target for parentless SVG readers, instead of only as a downscale ceiling. This lets thumbnail generation render tiny SVG files at the requested decode size, avoiding blurry thumbnails caused by first rasterizing at the SVG document size. -Raster images and SVGs with a parent clip/timeline keep their existing sizing behavior.

…or tiny sizes)

-Treat SetMaxDecodeSize as the rasterization target for parentless SVG readers, instead of only as a downscale ceiling. This lets thumbnail generation render tiny SVG files at the requested decode size, avoiding blurry thumbnails caused by first rasterizing at the SVG document size.
-Raster images and SVGs with a parent clip/timeline keep their existing sizing behavior.
@jonoomph
Copy link
Copy Markdown
Member Author

jonoomph commented May 8, 2026

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.13%. Comparing base (fbc37e2) to head (226f686).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1071      +/-   ##
===========================================
+ Coverage    70.11%   70.13%   +0.02%     
===========================================
  Files          241      241              
  Lines        29059    29082      +23     
===========================================
+ Hits         20375    20398      +23     
  Misses        8684     8684              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jonoomph jonoomph merged commit 6011e73 into develop May 8, 2026
13 checks passed
@jonoomph jonoomph deleted the small-svg-thumbnails branch May 8, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant