Import image DPI option behavior seems reversed
Summary:
When opening or importing bitmap images, the import dialog radio buttons for Image DPI seem to act in reverse of expected behavior:
Selecting "From file" opens the file and scales the bitmap in the workspace to a size commensurate with 96 dpi.
Selecting "Default import resolution" opens the file in the workspace scaled at its actual pixel size.
Steps to reproduce:
- Open Inkscape
- Open the attached sample bitmap file of 3162 x 4769
- Select "From file" radio button & click ok
What happened?
The bitmap opens in the workspace scaled to 1011.840 x 1526.080. (The status bar indicates a 3162 x 4769 image.)
What should have happened?
The file should open at 3162 x 4769.
Conversely, selecting "Default import resolution" in the import dialog opens the file at 3162 x 4769, even when the Preferences>Input/Output>Imported Images "default resolution" field is set to 96 dpi. In this scenario, the checkbox for override file resolution gets ticked without user input.
Discussion on this issue can be found on the forum: https://inkscape.org/forums/beyond/image-actual-sizes-and-inkscape-sizes/
Sample attachments:
Gif demonstration: https://media.inkscape.org/media/resources/file/inkscape_20240630170634.gif
Version info
Inkscape 1.3.2 (091e20e, 2023-11-25, custom)
GLib version: 2.78.1
GTK version: 3.24.39
glibmm version: 2.66.6
gtkmm version: 3.24.8
libxml2 version: 2.11.5
libxslt version: 1.1.38
Cairo version: 1.18.0
Pango version: 1.50.14
HarfBuzz version: 8.2.2
OS version: Windows 10 22H2
Similar behavior seen in MacOS. Please see forum discussion.