Linked image not found when importing photo on Ubuntu

Bug #1746054 reported by Pavel Grishaev
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

Open import dialog and choose any jpg image of big size (4000 x 4000 px), and you will see "Linked image not found" instead preview. And error if continue.
Screenshot attached.
It happens only on Ubuntu (I have 16.04 LTS, both desktop and server). On Windows the same images are OK.
If I use command line to make PDF from SVG with big linked images, I have "Linked image not found" rectangles too. But small linked images shows normally.
Inkscape 0.92.2

Revision history for this message
Pavel Grishaev (gigatrop) wrote :
Revision history for this message
Pavel Grishaev (gigatrop) wrote :
Revision history for this message
Patrick Storz (ede123) wrote :

Can you link those images by dragging/dropping them onto the canvas? Or does this fail, too?

Revision history for this message
Pavel Grishaev (gigatrop) wrote :

No. Drag-and-drop failed too

Revision history for this message
Pavel Grishaev (gigatrop) wrote :
Revision history for this message
Patrick Storz (ede123) wrote :

Could you check the console if there is any helpful debug output?

Revision history for this message
Pavel Grishaev (gigatrop) wrote :

If you mean terminal, it has one line after image fail - "GdkPixbuf loader failed"

Revision history for this message
Patrick Storz (ede123) wrote :

Well, that's helpful... :-/
I had suspected GdkPixbuf and had hoped to get some more helpful error message.

As I'm not using Ubuntu myself we might have to wait for somebody else who might know hwat is going on I'm afraid. Maybe you can try to google for similar issues (large images not loading with gdkpixbuf).

Revision history for this message
Pavel Grishaev (gigatrop) wrote :

I don't use Ubuntu, just have to use it sometimes, as my web-service works on it and uses inkscape to produce PDFs. So I can't find a solution myself, I don't understand anything relative :)

Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

The relevant code is in src/display/cairo-utils.cpp: Pixbuf::create_from_file()

Adding some error reporting gives (on Fedora 27):

Pixbuf::create_from_file: Error interpreting JPEG image file (Unsupported marker type 0x2a)

The 'file' command reveals:

JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=18, GPS-Data, model=M5 Note], baseline, precision 8, 3120x4208, frames 3

I can't find any info on what marker type 0x2a corresponds to.

Gimp will open the file and if I export it from Gimp I can open the exported file in Inkscape.

Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

Error reporting code checked into master.

Revision history for this message
Pavel Grishaev (gigatrop) wrote :

According to this table of markers - http://lad.dsc.ufcg.edu.br/multimidia/jpegmarker.pdf - markers FF02..FFBF are reserved. So why they are important for this util enough to reject file?

Revision history for this message
Kovács Máté (kovmate111) wrote :

Affects me too on Manjaro, it is not an ubuntu-specific problem with Inkscape 0.92

Changed in archlinux:
status: New → Invalid
no longer affects: archlinux
Revision history for this message
alexey (avael) wrote :

Affects me too. I tried to re-save the test image with default osx viewer app -- without making changes to the size, and it helped. So, assuming it happens pretty rarely, it's just some bad jpg files, and re-saving should help. But in a long-term, it would be nice to have a fix.

tags: added: bug-migration
Changed in inkscape:
status: New → Invalid
status: Invalid → New
status: New → Invalid
status: Invalid → New
Revision history for this message
Nathan Lee (nathan.lee) wrote :

This was fixed in 0.92.5, and the issue was tracked in Gitlab (our new bugtracker, which we're slowly migrating issues to) with https://gitlab.com/inkscape/inkscape/-/issues/632

Changed in inkscape:
status: New → Fix Released
Revision history for this message
grey tomorrow (gtomorrow) wrote :

Closing because INVALID: Fix Released.

If you feel this issue has been unjustly closed, please feel free to open a new issue at https://inkscape.org/report . Thank you.

Closed by: https://gitlab.com/greytomorrow

Revision history for this message
Nathan Lee (nathan.lee) wrote :

Preemptive clarification: this wasn't an issue of either of grey or I trying to steal bug migration points from each other. (see https://alpha.inkscape.org/bug-migration/ where we track points)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.