I like using Inkscape for many things, one of them is creating credentials, so I made a script to substitute some text in an SVG template, but when I export it to PNG, it gets very pixelated. I've seen that forcing the pHYs DPI value to 300, gives me great results, but so far I can only do it manually through the GUI client, and I'd love to export it with the terminal, because it can save me hours of changing the SVG file over and over and mental health.
EDIT: I've just saw the section "Using Inkscape with Other Programs" so I thought in sharing it there, and remove this one, but seems like I'm not allowed to remove this post for not having the permits:
Permission Denied
Sorry, you're not allowed to see this.
This website has many features for project management and community involvement. Permissions are needed to access certain functions.
I like using Inkscape for many things, one of them is creating credentials, so I made a script to substitute some text in an SVG template, but when I export it to PNG, it gets very pixelated. I've seen that forcing the pHYs DPI value to 300, gives me great results, but so far I can only do it manually through the GUI client, and I'd love to export it with the terminal, because it can save me hours of changing the SVG file over and over and mental health.
EDIT: I've just saw the section "Using Inkscape with Other Programs" so I thought in sharing it there, and remove this one, but seems like I'm not allowed to remove this post for not having the permits:
Permission Denied
Sorry, you're not allowed to see this.
This website has many features for project management and community involvement. Permissions are needed to access certain functions.
Forget pHYs DPI unless you are familiar with the png spec.
Just use DPI
inkscape --actions="export-dpi:300;export-filename:test.png;export-do" drawing.svg
Hi, @inklinea, thanks for replying! I don't want to use just DPI because the resolution is very low. 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.