Large PNG image import fails.

Bug #168386 reported by Marcin Floryan
20
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

Importing a large PNG image into Inkscape 0.45 causes the image to display
in an awkward way. The source image is 1371 x 1660 Pixels (2.28 MPixels)
2.38 MB (2,493,041 Bytes) PNG - ZIP
This relates to this version only - I was working with this file just a
minute ago and it was OK (in Inkscape 0.44). This seems to be a memory
problem. Attached screenshot.

Revision history for this message
Marcin Floryan (mfloryan) wrote :
Revision history for this message
Marcin Floryan (mfloryan) wrote :

Originator: YES

I think it is a ZIP decompression problem because I have just converted
this image to a PNG with different compression level and it shows OK - It
is the same file but is now 6.52 MB (6,840,365 Bytes).

Revision history for this message
Bblanchon (bblanchon) wrote :

Originator: NO

Same for me with Inkscape 0.45.
The picture loads fine if the compression level is reduced.

Revision history for this message
Mizar-jp (mizar-jp) wrote :

Originator: NO

As for the import of PNG which includes byte array of "0A 0D"(LF+CR) it
seems that fails.

related bug:
[ 1665767 ] Some PNG image import fails

Revision history for this message
nightrow (jb-benoit) wrote :

marking bug https://bugs.launchpad.net/inkscape/+bug/168390 as a duplicate of this one as the title here seems more accurate

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Jean-Marc Molina (jmmolina-ifrance) wrote :

I encountered the problem many times using Inkscape 0.45.1. In fact I use it to illustrate screenshots captured with SnagIt, a screen capture tool. Dragging and dropping the capture in Inkscape result in a "negative image with glitches", see the attached screenshot. To fix the problem I open it in IrfanView, a graphics viewer, and save it as a new PNG image.

Revision history for this message
Jean-Marc Molina (jmmolina-ifrance) wrote :

In fact I captured this bug page as a test, see attachment.

Revision history for this message
Jean-Marc Molina (jmmolina-ifrance) wrote :

Same image but saved using IrfanView. Note that both images are 1000x1946 large and zipped PNG. The original is 64,157 bytes large when the saved one is 57,873 large.

Revision history for this message
Jean-Marc Molina (jmmolina-ifrance) wrote :

Sorry I attached the wrong image in my first comment so here's the correct one. I don't know how to edit an existing attachment so I'll leave it for now.

Revision history for this message
George Yohng (georgeis) wrote :

I have just tested on Win32 with 0.47 nightly build from June 20 2009, and this bug is still present. Please have a look at the attachment.

Revision history for this message
Alvin Penner (apenner) wrote :

could you attach the original image that caused the problem?

tags: added: bitmap
George Yohng (georgeis)
Changed in inkscape:
status: Confirmed → Fix Released
Revision history for this message
su_v (suv-lp) wrote :

@George Yohng - 'Fix released' in Inkscape 0.48 or a current development build?

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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