Opened 2 years ago
Last modified 2 years ago
#18221 new enhancement
Backgrounds: Resize vector images before rendering to bitmap
Reported by: | humdinger | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Preferences/Backgrounds | Version: | R1/beta4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
When the "Placement" is set to "Scale to fit", SVG images should be resized to the screen resolution before they are rendered into the bitmap. (Possibly WonderBrush files, too, though I dunno what happens if those include bitmaps deside vector shapes.)
Currently, it seems, the SVG is rendered in it original resolution and then the bitmap is scaled up to the screen resolution, resulting in blurry images.
The nanosvgtranslator provides a "Scale" parameter in DataTranslation prefs.
I attached one of zuMi's excellent SVG backgrounds if anyone decides to work on this and needs a test file.
Attachments (1)
Change History (2)
by , 2 years ago
comment:1 by , 2 years ago
Translators accept a BMessage to specify optional parameters. Likely all the "vector" translators (HVIF, WonderBrush, SVG, etc.) should accept one with a "size" parameter and render as appropriate.
zuMi's SVG background "Cociu"