inkscape-android-export icon indicating copy to clipboard operation
inkscape-android-export copied to clipboard

Strange image sizes

Open robotanz opened this issue 7 years ago • 1 comments

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 avatar Mar 27 '17 14:03 robotanz

@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

HEXcube avatar Jul 29 '17 13:07 HEXcube