Summary: | Showfoto unable to open some png file | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | rapsys <rapsys> |
Component: | Plugin-DImg-PNG | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, gpall, mgarski, rolandwolters |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 6.2.0 | |
Sentry Crash Report: | |||
Attachments: |
Original png (fail)
Same png but saved from gimp (works) |
Description
rapsys
2007-04-15 21:36:59 UTC
Created attachment 20281 [details]
Original png (fail)
Created attachment 20282 [details]
Same png but saved from gimp (works)
When i try to load the broken image in showfoto, libpng return an error : libpng error: incorrect header check This is want mean than your image is corrupted. Thi sis not a problem with showfoto, but with libpng. Gilles Caulier I don't think it's only a libpng bug... As the thumnail generation of the file works perfectly (even in showfoto) Si i think there is a bug in showfoto (gimp use libpng too, so it should be fail then too) I also have the same problem. The fact is that I haven't been able to open any .png with showfoto, except from the one that rapsys has uploaded (the one saved from gimp I mean). And I don't think it's a libpng problem because many of the files that I get an error trying to open were created for example by PhotoShop. In addition to that, all those pngs open just fine using other kde applications (kview for example). The same is true for me: There are several png images I have which worked perfectly in digikam before, but now fail to be opened. Other applications have no problem at all. My libpng version is 1.2.16, the digikam version is 0.9.2 I confirm that it's a bug in libpng. On my computer (Mandriva 2007.1 + cooker RPMs) i have this issue: * with libpng 1.2.13 = digiKam for KDE3 or KDE4 is not able to thumb/preview/load png image provided by rapsys. * to update libpng to 1.2.19, problem has desapears... Note : showfoto == digiKam image editor. Issue is reproductible in showfoto for KDE3 or KDE4 Gilles Notes: - i have used current code of digiKam 0.9.3 from svn, not 0.9.2. - i have recompiled digiKam of course after to update libpng. Gilles The problem is still valid for me with libpng 1.2.22 and showfoto. Showfoto is the only image program I have which has problems opening these files - all others I've tested (Kuickshow, KView, Gwenview, Gimp, ooDraw) worked. Just to be sure: are you using digikam 0.9.3-rc1 now? (And you did recompile digikam after the update to libpng 1.2.22?) What is the error message on the konsole? What is the output of ldd PATH/TO/DIGIKAM/digikam | grep png (You can get the path via `which digikam` on the konsole) $ rpm -q digikam digikam-0.9.2-5.fc8 The error in the konsole is the same as above: libpng error: incorrect header check $ ldd `which digikam`|grep png libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00832000) $ ll /usr/lib/libpng12.so.0 lrwxrwxrwx 1 root root 18 2. Nov 13:17 /usr/lib/libpng12.so.0 -> libpng12.so.0.22.0 About the rebuild: rom reports that digikam was rebuild in September - with an older version of libpng (1.2.22 was built in October). I will ask in bugzilla of Fedora for a rebuild of digikam. I meant rpm, not rom. Anyway, the related bug report in Fedora's bugzilla is here: https://bugzilla.redhat.com/show_bug.cgi?id=425781 Of course, you could try to build digikam yourself, see the installation instructions at: http://www.digikam.org/?q=download/svn in particular below "Install digiKam in your Home Directory" (Don't hesitate to ask on digikam-users if you run into any problems ...) I have compiled digikam-0.9.2 (libpng-1.2.22) with enabled debug messages in pngloader.cpp: showfoto: /home/marcin/bad.png : PNG file identified showfoto: [virtual bool Digikam::PNGLoader::load(const QString&, Digikam::DImgLoaderObserver*)] PNG in >=8 bits/color/pixel. showfoto: PNG in PNG_COLOR_TYPE_RGB libpng error: incorrect header check showfoto: [virtual bool Digikam::PNGLoader::load(const QString&, Digikam::DImgLoaderObserver*)] Internal libPNG error during reading file. Process aborted! kio_digikamthumbnail: /home/marcin/bad.png : PNG file identified kio_digikamthumbnail: [virtual bool Digikam::PNGLoader::load(const QString&, Digikam::DImgLoaderObserver*)] PNG in >=8 bits/color/pixel. kio_digikamthumbnail: PNG in PNG_COLOR_TYPE_RGB libpng error: incorrect header check kio_digikamthumbnail: [virtual bool Digikam::PNGLoader::load(const QString&, Digikam::DImgLoaderObserver*)] Internal libPNG error during reading file. Process aborted! kio_digikamthumbnail: /home/marcin/bad.png : PNG file identified kio_digikamthumbnail: [virtual bool Digikam::PNGLoader::load(const QString&, Digikam::DImgLoaderObserver*)] PNG in >=8 bits/color/pixel. kio_digikamthumbnail: PNG in PNG_COLOR_TYPE_RGB libpng error: incorrect header check kio_digikamthumbnail: [virtual bool Digikam::PNGLoader::load(const QString&, Digikam::DImgLoaderObserver*)] Internal libPNG error during reading file. Process aborted! kio_digikamthumbnail: No relevant plugin found Look like libpng cannot open the file properlly. THis is not the fault to digiKam PNG loader i think... Gilles Caulier Le Saturday 19 January 2008 14:51:54 Gilles Caulier, vous avez écrit : [bugs.kde.org quoted mail] It is, cause gimp and other are loading the same png correctly, plz take a look at how they success open it... It's ok in koffice-krita or gimp and even in gwenview, why showphoto or digikam is unable to open it ??? Rapsy, This entry still valid using showfoto 0.7.0 ? Gilles Caulier Rapsy, This entry still valid using showfoto 0.8.0 ? With no response from you, this file will be closed... Gilles Caulier (In reply to comment #18) > Rapsy, > > This entry still valid using showfoto 0.8.0 ? > > With no response from you, this file will be closed... > > Gilles Caulier > Hello. I quit using showfoto long time ago. Since you asked my, I re-installed it on my debian lenny (with all latest upgrades), and it still does not work. I downloaded the attachments, and the one is working and the other not... aptitude show showfoto Package: showfoto New: yes State: installed Automatically installed: no Version: 2:0.9.4-1 Priority: optional Section: graphics Maintainer: Debian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org> Uncompressed Size: 2961k Depends: kdelibs4c2a (>= 4:3.5.9), libc6 (>= 2.7-1), libgcc1 (>= 1:4.1.1), libjasper1 (>= 1.900.1), libjpeg62, libkdcraw3, libkexiv2-3, liblcms1 (>= 1.15-1), libpng12-0 (>= 1.2.13-4), libqt3-mt (>= 3:3.3.8b), libstdc++6 (>= 4.1.1), libtiff4, libx11-6, digikam (>= 2:0.9.1~rc2) Recommends: kipi-plugins, kdeprint, konqueror Conflicts: digikam (<= 2:0.9.0-1), digikamimageplugins (< 2:0.9.0~rc2) Replaces: digikam (<= 2:0.9.0-1) Description: image viewer/editor for KDE Showphoto is part of the Digikam project. It allows to browse your photo collection and edit them with ease. Homepage: http://www.digikam.org Confirming for showfoto 0.10.0-beta7 (rev.: 894962) relevant konsole output (note that I can see thumbnail contrary to one of lines below - only main image isn't loaded): libpng error: incorrect header check Style reset requested. libpng error: incorrect header check showfoto(2626)/digikam (core) Digikam::ThumbnailCreator::load: Cannot create thumbnail for "/home/mikolaj/test.png" showfoto(2626)/digikam (core) Digikam::EditorWindow::slotLoadingFinished: Failed to load image "test.png" showfoto(2626)/digikam (core) Digikam::DImgInterface::getImg: d->image is NULL #20 Forgot: I can see thumbnail but it is not scaled to fit into its place - I see only fragment. The test image is interlaced, so this is a dup of bug 149875 *** This bug has been marked as a duplicate of bug 149875 *** Fixed with bug #149875 |