Bug 325530 - Preview and Editor return "Failed to Load Image" error when viewing JPEG (only) files
Summary: Preview and Editor return "Failed to Load Image" error when viewing JPEG (onl...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Engine (show other bugs)
Version: 3.4.0
Platform: PCLinuxOS Linux
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 04:45 UTC by kshaav
Modified: 2019-12-29 13:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kshaav 2013-10-02 04:45:08 UTC
Thumbnails appear normally, images open without any problem in external viewers. However, when a JPEG image is selected, the preview will not appear --- just the error "Failed to load image". Same thing happens when trying to open the editor or the slideshow.

Only affects JPEG images; GIF, PNG, TIFF, BMP all open normally.

Affects JPEG files both locally and on network shares.

3.4 repo install on new installation of PCLinuxOS.

Reproducible: Always

Steps to Reproduce:
1. Select thumbnail in the album viewer
Actual Results:  
"Failed to load image"

Expected Results:  
Preview image is displayed.
Comment 1 kshaav 2013-10-02 05:02:44 UTC
Started it from the command line and got:

digikam(15195)/digikam (core) Digikam::PreviewLoadingTask::execute: Cannot extract preview for  "/home/xxx/xxxx/people.jpg" 
digikam(15195)/digikam (core) Digikam::EditorCore::getImg: d->image is NULL
Comment 2 caulier.gilles 2013-10-02 06:41:55 UTC
Of course this is not reproducible here... JPEG is a very used file format...

2 possibilities :

- file rights are wrong. Try to use another JPEG viewer program.
- JPEG lib is broken on your system. Please share a test image through shared web service, to be able to test here...

Gilles Caulier
Comment 3 kshaav 2013-10-02 08:42:29 UTC
This image is a random one I downloaded and stored locally in it's own album to test:

http://urbanabydos.ca/digikam/people.jpg

File permissions:
http://urbanabydos.ca/digikam/snapshot1.png

digiKam error:
http://urbanabydos.ca/digikam/snapshot2.png

same file open in Gwenview:
http://urbanabydos.ca/digikam/snapshot3.png
Comment 4 kshaav 2013-10-02 08:47:11 UTC
> - JPEG lib is broken on your system. Please share a test image through

I took a look at the JPEG related packages installed, but there are a lot of them... Any guidance as to which is most relevant? I'll try reinstalling.
Comment 5 caulier.gilles 2013-10-02 09:05:25 UTC
Showfoto and digiKam open JPEG file without problem here (Mageia 3.0) :

digiKam version 4.0.0-beta1
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibEigen: 3.1.2
LibExiv2: 0.23
LibJPEG: 80
LibJasper: 1.900.1
LibKDE: 4.10.5
LibKExiv2: 2.3.1
LibKGeoMap: 2.0.0
LibKdcraw: 2.3.1
LibLCMS: 2050
LibLensFun: 0.2.6-0
LibPGF: 6.12.27 - internal library
LibPNG: 1.5.13
LibQt: 4.8.5
LibRaw: 0.15.4
LibTIFF: LIBTIFF, Version 4.0.3 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble Widget: 0.15.1 (stable version)
Parallelized PGF codec: No
Parallelized demosaicing: Yes
RawSpeed codec support: Yes
Database backend: QSQLITE
Kipi-Plugins: 4.0.0-beta1
LibGphoto2: 2.5.2
LibKface: 3.0.0
LibKipi: 2.1.0
LibOpenCV: 2.4.3

So, it's a problem in your system...

Gilles Caulier
Comment 6 caulier.gilles 2019-12-29 13:46:03 UTC
Not reproducible with 7.0.0 beta 1.