Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#16371 closed defect (fixed)

libpng-1.2.30 and/or gimp2-2.4.5 - Gimp fails to open certain PNG files

Reported by: ddbrierton (Darren Brierton) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: gimp, png Cc:
Port:

Description

Gimp will not open certain PNG files (example attached) although they appear to be valid. The files were created in Photoshop, and can be opened by Preview and Safari. The files can also be opened and edited in Gimp 2.4.6 (gimp-2.4.6-1.fc8) running on Fedora Core 8.

Precise error message from Gimp:

PNG image Message

Error while reading '/Users/darren/Desktop/background_img.png'. File corrupted?

GIMP Message

Opening '/Users/darren/Desktop/background_img.png' failed:

PNG image plug-In could not open image

If I start Gimp from a terminal and then open the file this error message is printed to the terminal:

libpng error: x[DA][94][FD]: invalid chunk type

Running:

Mac OS X 10.5.4
MacPorts 1.6.0
gimp-app                       @2.4.0          aqua/gimp-app
gimp-user-manual               @0.13           graphics/gimp-user-manual
gimp2                          @2.4.5          graphics/gimp2
libpng                         @1.2.30         graphics/libpng

Attachments (1)

background_img.png (125.3 KB) - added by ddbrierton (Darren Brierton) 16 years ago.
An example PNG file that causes the problem

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by ddbrierton (Darren Brierton)

Attachment: background_img.png added

An example PNG file that causes the problem

comment:1 Changed 16 years ago by blb@…

I think this is a regression in libpng, as I can reproduce your error with 1.2.30, but it works fine with the newest version, 1.2.31. Try upgrading libpng and see if that works.

comment:2 Changed 16 years ago by ddbrierton (Darren Brierton)

Yes, the upgrade to libpng 1.2.31 fixes the problem. Thank you!

comment:3 Changed 16 years ago by blb@…

Resolution: fixed
Status: newclosed

comment:4 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.