Bug 338887 - FILEIO : digikam generated pgf broken/incompatible
Summary: FILEIO : digikam generated pgf broken/incompatible
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-PGF (show other bugs)
Version: 4.2.0
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-07 20:32 UTC by Robert Riemann
Modified: 2022-01-02 15:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0
Sentry Crash Report:


Attachments
created with imagemagick, doesn't work in digikam (74.34 KB, image/jpeg)
2014-09-07 20:33 UTC, Robert Riemann
Details
created with digikam, doesn't work in gwenview. (2.09 MB, application/octet-stream)
2014-09-07 20:37 UTC, Robert Riemann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Riemann 2014-09-07 20:32:10 UTC
I thought about converting my photo library (6000x4000, Nikon) to jp2 or pgf to save disk space.

I didn't considered the batch mode to start the conversation, as it doesn't support all CPUs. I went with gnu parallel and imagemagick.
convert  -resize 2000x2000 -auto-orient DSC_3319.JPG /tmp/DSC_3319_imagemagick.jpg

The produced file works in dolphin, gwenview and in the thumbnail folder view of digikam. However, I get an error when opening the big preview for the pgf file.

digikam(11548)/digikam (core) Digikam::PreviewLoadingTask::execute: Cannot extract preview for  "/path/DSC_3319_imagemagick.pgf"

I did another test. I used the batch mode to create a pgf file within digikam. The result is a file, which is not recognized by dolphin nor gwenview, but only works within digikam.

file DSC_3319_imagemagick2.pgf
DSC_3319_imagemagick2.pgf: JPEG image data, JFIF standard 1.01

file DSC_3319_digikam.pgf
DSC_3319_digikam.pgf: data

I have the same behavior with jpeg 2004.

digiKam version 4.2.0
CPU cores: 4
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.2.0
LibExiv2: 0.23
LibJPEG: 80
LibJasper: 1.900.1
LibKDE: 4.11.5
LibKExiv2: 2.3.1
LibKGeoMap: 2.0.0
LibKdcraw: 2.3.1
LibLCMS: 119
LibLensFun: 0.2.8-0
LibPGF: 6.12.24 - external shared library
LibPNG: 1.6.6
LibQt: 4.8.5
LibRaw: 0.15.3
LibTIFF: LIBTIFF, Version 4.0.3 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble Widget: 0.16.5 (stable version)
Parallelized PGF codec: No
Parallelized demosaicing: No
RawSpeed codec support: No
Database backend: QSQLITE
Kipi-Plugins: 4.2.0
LibGphoto2: 2.5.2.1
LibKface: 3.0.0
LibKipi: 2.1.0
LibOpenCV: 2.4.6.1


Reproducible: Always


Actual Results:  
I cannot create pgf images with digikam, because the files are uncompatible to my desktop environment KDE.

Expected Results:  
I can use the files created by imagemagick in all applications including digikam.
Comment 1 Robert Riemann 2014-09-07 20:33:04 UTC
Created attachment 88607 [details]
created with imagemagick, doesn't work in digikam
Comment 2 Robert Riemann 2014-09-07 20:37:39 UTC
Created attachment 88608 [details]
created with digikam, doesn't work in gwenview.
Comment 3 caulier.gilles 2014-09-07 20:53:39 UTC
1/ Are you sure that ImageMAgick is able to generate PGF ?

2/ your command line is wrong :

convert  -resize 2000x2000 -auto-orient DSC_3319.JPG
/tmp/DSC_3319_imagemagick.jpg

==> /tmp/DSC_3319_imagemagick.jpg ==> /tmp/DSC_3319_imagemagick.pgf

Gilles Caulier
Comment 4 caulier.gilles 2014-09-08 21:28:51 UTC
>The produced file works in dolphin, gwenview and in the thumbnail folder view of digikam. >However, I get an error when opening the big preview for the pgf file.

==> you have generated a JPEG file, not a PGF.

>I did another test. I used the batch mode to create a pgf file within digikam. The result is a >file, which is not recognized by dolphin nor gwenview, but only works within digikam.

==> It's normal. You have generated a right PGF file and KDE do not have a PGF plugin loader. See bug#273366

Gilles Caulier

*** This bug has been marked as a duplicate of bug 273366 ***
Comment 5 Robert Riemann 2014-09-09 09:22:12 UTC
Thanks for your comments. It's actually true. I find it a bit confusing that imagemagick doesn't report an unknown destination file format.

I had to install imagemagick-extra and jasper to be able to create jpeg 2000 files. They work within all applications, but even though the files are only about 1 MB, it takes way to long to get a preview to consider this format as a practical alternative.  Are there any studies about this?
Comment 6 caulier.gilles 2019-07-27 20:01:01 UTC
Please test with 6.2.0 pre-release bundles available here :

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier