Opening or importing raster/bitmap image (png or jpg) gives document the wrong size
Summary:
Opening or importing raster/bitmap image (png or jpg) gives document the wrong size. I made 128x128 pixels image files and I was not able to have this 128x128 pixels in Inkscape, even if I tried a lot of ways with the DPI, default DPI, DPI from file, change default DPI. I had always a 170.667 px size.
Steps to reproduce:
- open a 128x128 pixels bmp file with Inkscape
- the document has 170.667 x 170.667 pixels size
What happened?
- the document has 170.667 x 170.667 pixels size
What should have happened?
- the document has 120 x 120 pixels size
Sample attachments:
Version info
Inkscape 1.4.2 (f4327f4, 2025-05-13)
Compile (Run)
GLib version: 2.84.0
GTK version: 3.24.49 (3.24.49)
glibmm version: 2.66.7
gtkmm version: 3.24.9
libxml2 version: 2.12.10
libxslt version: 1.1.43
Cairo version: 1.18.4 (1.18.4)
Pango version: 1.56.3 (1.56.3)
HarfBuzz version: 10.4.0 (10.4.0)
OS version: Windows 11 24H2