Wrong size units (mm instead of cm)

Bug #1113355 reported by Mattia Migliorini on 2013-02-02
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Unassigned
inkscape (Ubuntu)
Medium
Unassigned

Bug Description

Package version: 0.48.3.1-1ubuntu6.1
OS: Ubuntu 12.10

Steps to reproduce:
- Open a file
- Go to File > Export bitmap...
- Choose Unit: cm
- Export
- Open PNG image with an image viewer

As you can see if you follow these steps, the image size is mm, not cm.

Mattia Migliorini (deshack) wrote :
Mattia Migliorini (deshack) wrote :
Matt Fischer (mfisch) wrote :

When I try it I get the export always in cm, never in mm. It's certainly broken in Q.

JNH (jordannh) on 2013-02-06
Changed in inkscape (Ubuntu):
assignee: nobody → JNH (jordannh)
JNH (jordannh) wrote :

Thank you for the bug report.
Could you please reproduce this and attach a screenshot of the full export window. Other fields are important in the image size, mainly the dpi.
Also, what version of Inkscape are you using? What version and architecutre (i386 or amd64?) of Ubuntu?

Mattia Migliorini (deshack) wrote :

Inkscape version: 0.48.3.1 r9886
OS version: 32bit
Architecture: i686

JNH (jordannh) wrote :

Also the original SVG and resulting image would be helpful (if you don't feel comfortable sharing the image, a simple square is fine as long as the bug is reproduced).
Again, thank you.

su_v (suv-lp) on 2013-02-06
Changed in inkscape:
status: New → Incomplete
tags: added: bitmap exporting
tags: added: units
Changed in inkscape (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Changed in inkscape:
importance: Undecided → Medium
Mattia Migliorini (deshack) wrote :

As I wrote before in the report, I'm using Ubuntu 12.10.

Here's the svg, in the following comment the resulting png.

Mattia Migliorini (deshack) wrote :
JNH (jordannh) wrote :

Ah, sorry, didn't see the Ubuntu version. My bad.
I think your problem is the "dpi" under the "Bitmap Size." I was able to get a close pixel size match with a value of 90.
==
To see what I mean by pixel size size match, change the units from "cm" to "px." They should match the "Bitmap Size" width an height. mess with the dpi until those values match the width and height from the export area.
==
Yeah, it is a bit confusing.

Mattia Migliorini (deshack) wrote :

I'm sorry for being late.
JHN, you're right, it works fine with 90 dpi.

Thanks a lot, but do I have to setup this value every time I edit an image?

JNH (jordannh) on 2014-02-09
Changed in inkscape (Ubuntu):
status: Incomplete → In Progress
Mattia Rizzolo (mapreri) wrote :

@JNH: please feel free to reassign yourself if you are actually working on it (but please provide feedback and updates)

Changed in inkscape:
status: Incomplete → New
Changed in inkscape (Ubuntu):
status: In Progress → New
assignee: JNH (jordannh) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers