[Bug 24568] PNG decoder can't decode some PNGs

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Oct 6 00:29:02 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=24568

--- Comment #4 from Damjan Jovanovic <damjan.jov at gmail.com> 2010-10-06 00:29:01 CDT ---
The error comes from libpng's pngread.c, function png_read_row:

png_benign_error(png_ptr, "Extra compressed data");

The saga continues in pngconf.h:

/* Enabled in 1.4.0. */
#ifdef PNG_ALLOW_BENIGN_ERRORS
#  define png_benign_error png_warning
#  define png_chunk_benign_error png_chunk_warning
#else
#  ifndef PNG_BENIGN_ERRORS_SUPPORTED
#    define png_benign_error png_error
#    define png_chunk_benign_error png_chunk_error
#  endif
#endif

Since user_error_fn gets called in windowscodecs, benign errors must be
disabled in Ubuntu.

The interesting thing is how Nautilus and Eye of Gnome both open the same image
without problems. They both defer to libgtk's gdk-pixbuf image loader, which
uses progressive PNG loading, which probably bypasses the problem somehow.

Since eMule is a widely used app on Wine, I can't submit a patch to get
winemenubuilder to extract PNGs from ICO files until this is fixed.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list