Opened 2 months ago

Last modified 2 months 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


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)

cociu.svg (13.0 KB ) - added by humdinger 2 months ago.
zuMi's SVG background "Cociu"

Download all attachments as: .zip

Change History (2)

by humdinger, 2 months ago

Attachment: cociu.svg added

zuMi's SVG background "Cociu"

comment:1 by waddlesplash, 2 months 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.

Note: See TracTickets for help on using tickets.