Open Inkscape, Click on Import, and in the folder that comes up try to open a jpeg image file by clicking on it. The image happens to have ExifByteOrder "Big-endian" in its metafile.
...
What happened?
After clicking on the file to be opened an Icon with the message "Linked image not found" and the importing process stops.
...
What should have happened?
The "jpeg bitmap image import" window should have opened allowing me to specify how to embed the image.
...
Another workaround: Remove the exif data for the image that you import into Inkscape. For example, with the following command:
exiftool -all= myphoto.jpg
Another suggestion was to convert it to PNG in another program, or to resave it as JPG in another program. E.g. Gimp seems to remove the exif data on saving.
What's weird is that this image IMG_20160520_151742459_from_gimp is reported to have a BigEndian Exif byte order, too. And it can be opened with Inkscape.
The main difference seems to be the thumbnail data. Which, incidentally, seems to be not loading in the preview of the import dialog in Inkscape already.
Update: not replicated Windows 10 with 0.91 r13725 or 0.92.1 r15371 7z versions
Not replicated Windows 7 with 0.92.x r15413 (2017 commit) 32bit
Somewhat replicated r15616 MSYS2 devlibs 64b (The imported image is empty, and the console shows a bunch of GdkPixbuf errors. No error dialog. Attachments listing errors are found in the migrated issue but I don't see it as relevant now (I can tell you that in gdk_pixbuf_loader_write, after reading the header, the image is listed as having no width/height/etc.)
Daniel Stiefelmaier (mail-stiefelweb) listed various attempts to fix the image minimally (see expander)
Daniel Stiefelmaier's tests
NOT a fix: recompressing, or removing random EXIF data
gm convert IMG_20161206_163501.jpg -size 10% small.jpg
exiv2 -M"del Exif.Photo.MakerNote" small.jpg
A fix: stripping ONLY the thumbnail
exiv2 -dt *.jpg
However, diff reveals that this moves the metadata section from the front to the back of the file.
So, the real issue might be either the size or the position of the meta data.
Also NOT a fix: stripping thumb from front and appending it to the end
exiv2 -et test.jpg # export to test-thumb.jpg
exiv2 -dt test.jpg # delete thumb
exiv2 -it test.jpg # import from test-thumb.jpg
However, ALSO A FIX: making the thumb smaller:
cp test-thumb.jpg test-thumb.org.jpg
gm convert test-thumb.org.jpg -quality 30% test-thumb.jpg
exiv2 -dt test.jpg # delete old thumb first - it DOES make a difference
exiv2 -it test.jpg
The largest thumbnail that worked was with 43% quality, which is very close to 10KiB.
If there's a desire to fix this asap, we can fix this by reading the file in 65536 chunks till the whole file is read. This workarounds the bug. Shouldn't have any real overhead but will add complexity that we may forget to remove. inkscape-incremental-read.diff
They accepted your MR, that's awesome! So it will be fixed in gdk-pixbuf-2.41.0? Looks like the last release was 5 months ago, but before that they used to release more often. So there is a chance it'll be released soon I guess?
I wouldn't mind your inkscape-incremental-read.diff fix if you guard it with GDK_PIXBUF_CHECK_VERSION.