inkscape-android-export
inkscape-android-export copied to clipboard
Strange image sizes
I tried to export an Action Bar icon. The page size in my inkscape document is set to 24x24 px. Standard sizes for Action Bar icons are 24x24 for mdpi, 36x36 for hdpi etc. What I got was: 23x23 etc. In my case, changing some densities in python script helped:
group.add_density_option("mdpi", 96) #instead of 90 group.add_density_option("hdpi", 144) group.add_density_option("xhdpi", 192)
I don't know if this is really a bug or a misuse.
@robotanz Inkscape recently (version 0.92 and up) changed default DPI to 96 from 90 to match the CSS standard. For more info, see Inkscape 0.92 release notes
But u seem to have already made the fix :smile: : https://github.com/robotanz/inkscape-android-export/commit/300e49b2a669373125d6a1ff2755aa1c583349c0