Unless you need Inkscape you can use a more simple tool like rsvg-convert
.
this post was submitted on 28 Aug 2023
3 points (100.0% liked)
Inkscape
259 readers
1 users here now
A community for users of Inkscape, the free and open source vector graphics editor.
All posts should clearly indicate the origin of artwork, or it must be clear from the article, video or page linked. Original content (created by the poster) should contain [OC] in the title.
founded 1 year ago
MODERATORS
Oh! Cool tool!! I have a doubt, though.
- If I use
rsvg-convert --width=1050mm --keep-aspect-ratio svg.svg > reduced.png
, the dimensions of the picture I get are 105,01 x 69,96 cm. - But if I add
--dpi-x=300 --dpi-y=300
to the command,rsvg-convert --dpi-x=300 --dpi-y=300 --width=1050mm --keep-aspect-ratio svg.svg > reduced.png
, the dimensions are 328,14 x 218,55 cm.
Is there any way to set the pixel density while keeping the width fixed?
I mean, there's a big difference between the picture in PNG and SVG when I see them both on Inkscape side by side, I want the PNG (left) to has the resolution of the SVG (right) while keeping the dimensions.