Skip to content

1.2.x: Fix content position when opening a raster image file

Rafał Siejakowski requested to merge S-Rafael/inkscape:bitmap-import-yup into 1.2.x

This MR fixes a bug occurring in Inkscape 1.2.1 but not on 1.3-dev, manifesting itself only when the preferences are set to y-axis pointing up.

In that scenario, opening a raster image (e.g. PNG file) may create a document in which the embedded image is displaced vertically; see #3939 (closed).

The cause of the issue is that the bitmap import extension failed to set the document dimensions to the dimensions of the opened image, so the SVG fallback values of 300px × 150px were used, resulting in incorrect conversions between document and desktop units.

Fixes #3939 (closed)

Merge request reports