FreeSVG community discussion forum

Place to discuss various topics regarding public domain svg, community.

You are not logged in.

#1 2019-12-15 22:07:25

szpak
Member
Registered: 2019-12-11
Posts: 8

[FEATURE] maintain aspect ratio in PNG converstion from SVG

Not all source images have a ratio 1:1. However, the png converter always return squared images. It's not a big deal, but it requires trimming on the client side. Maybe it would be possible to tweak the server converter to keep the original ratio?

Sample image:
https://freesvg.org/download/111105 - svg - 2129 × 1706
https://freesvg.org/converts/111105/300 - small png - 300 × 300

Offline

#2 2019-12-16 00:01:36

rob_s
Moderator
Registered: 2019-10-04
Posts: 184

Re: [FEATURE] maintain aspect ratio in PNG converstion from SVG

Well spotted, and makes for a good feature enhancement so I hope you don't mind but I have changed post title, so it is seen as a proposed future feature if possible.

found a old post referencing librsvg that claims to be able to do this if imagemagick cant

Offline

#3 2019-12-19 09:57:07

vedran
Moderator
Registered: 2019-09-21
Posts: 77

Re: [FEATURE] maintain aspect ratio in PNG converstion from SVG

Ok
will look into it.

Offline

Board footer

Powered by FluxBB