How to specify pixel dimensions / set decimal dpi resolution for graphic export
Hello,
I am using musescore 2 on lubuntu 16.
Page size is 160 mm x 90 mm, I wish to export png graphics exactly 1280x720 for video purposes.
if "Resolution DPI" in Edit>Preferences>Export accepted decimal values it would be easy (that's how I use to do it with another commercial notation software) but it accepts only integer numbers and I cannot reach the exact desired pixel dimensions.
Is there a way to force it (eg writing the float resolution in some "preferences" .xml file somewhere...) or doing it in another quick way without having to scale manually the exported files?
Thanks
Comments
So you you'd need fractional DPI setting, like 200.25 DPI? What is a quarter pixel then, and why doesn't rounding to the next integer work for you?
In reply to So you you'd need fractional… by Jojo-Schmitz
exactly.
203.1746 DPI
rounding to 204 exports 1285x723
rounding to 203 exports 1279x719
Just found a solution, slightly modifying the page size and keeping 203 DPI integer
In reply to exactly. 203.1746 DPI… by stefcarbo91
Rounding 203.1746 to 204 would be plain wrong anyway.
203 exports 1279x719 seems close enough to me
In reply to exactly. 203.1746 DPI… by stefcarbo91
If you don't mind specifying the page size in inches, 6.4 × 3.6" at 200 DPI is exactly 1280 × 720 pixels (and exactly 162.56 × 91.44 mm).
If you want to specify the page size in mm, 128 x 72 mm at 254 DPI is exactly 1280 × 720 pixels (and approximately 5.04 × 2.83"). Or, going bigger, 256 x 144 mm at 127 DPI is exactly 1280 × 720 pixels (and approximately 10.08 × 5.67").
In reply to If you don't mind specifying… by Spire42
Thanks
You could also consider exporting to SVG instead of PNG, then in principle the sizing is done at the receiving end. How practical that is depends on what you are actually trying to do here - what software you are using to create video from the graphics, what your workflow is like, etc.