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.
Created attachment 88607 [details] created with imagemagick, doesn't work in digikam
Created attachment 88608 [details] created with digikam, doesn't work in gwenview.
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
>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 ***
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?
Please test with 6.2.0 pre-release bundles available here : https://files.kde.org/digikam/ Thanks in advance Gilles Caulier