Or even better, reuse the code from src/extension/internal/image-resolution.cpp to detect the correct resolution?
(code added to fix https://bugs.launchpad.net/inkscape/+bug/165952, "png resolution not imported", but also deals with JFIF and EXIF data)
Note that we already have two options (Default import resolution and Override file resolution) that could be reused as default for bitmap embedding as well.
Or even better, reuse the code from src/extension/ internal/ image-resolutio n.cpp to detect the correct resolution? /bugs.launchpad .net/inkscape/ +bug/165952, "png resolution not imported", but also deals with JFIF and EXIF data)
(code added to fix https:/
Note that we already have two options (Default import resolution and Override file resolution) that could be reused as default for bitmap embedding as well.