digiKam 5.7.0 doesn't show krita kra thumbnails

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

digiKam 5.7.0 doesn't show krita kra thumbnails

Elle Stone-2
As per the subject line, krita kra thumbnails aren't displayed in digiKam.

I only put two kra files into the test folder, so it's possible that if
I put in several more, one or more of them might display, based on a
similar problem from a year ago, which was the last time I tried to use
digiKam to view Krita kra files.

I see two kde bug reports, not sure if either is relevant. But here are
the bug report links:

https://bugs.kde.org/show_bug.cgi?id=372568
https://bugs.kde.org/show_bug.cgi?id=301543

Should I file a new bug report? Or make a post to one or both of the
above bug reports?

Here's the library information:
KDE Frameworks 5.37.0
Qt 5.7.1 (built against 5.7.1)
The xcb windowing system

I'm running Gentoo Linux. As a test, I installed Gwenview, and Gwenview
displayed the kra thumbnail and the embedded preview with no problem.
But when I closed and reopened Gwenview, Gwenview couldn't display the
thumbnail or the preview. And upon reopening again, Gwenview could
display the thumbnail but not the preview. Etc.

Given what Gwenview is doing, this probably isn't a digiKam bug per se.

The exact same behavior was the case a year ago:

https://forum.kde.org/viewtopic.php?f=139&t=130341&p=348605&hilit=digikam+krita+kra#p348605

and two years ago:

https://forum.kde.org/viewtopic.php?f=223&t=129633&p=346885&hilit=digikam+krita+kra#p346885

The Krita version is krita-3.3.1.

Anyone have any suggestions for how to get digiKam to display Krita kra
files?

Thanks,
Elle Stone

--
http://ninedegreesbelow.com
Color management and free/libre photography

Reply | Threaded
Open this post in threaded view
|

Re: digiKam 5.7.0 doesn't show krita kra thumbnails

Elle Stone-2
On 10/24/2017 08:50 PM, Elle Stone wrote:
> As per the subject line, krita kra thumbnails aren't displayed in digiKam.

Oh, here's the terminal output when digiKam gets to the kra files - why
is digiKam trying to load a "video thumb" for a krita kra file?

Is there some additional KDE software that needs to be installed, that
maybe I haven't yet installed?

#terminal output:

digikam.general: Cannot get video thumb for
"/hdd/archive/image_archive/test-files/test-embedded-png.kra"
digikam.general: Video support is not available
digikam.general: Cannot get video thumb for
"/hdd/archive/image_archive/test-files/test-filmic.xcf"
digikam.general: Video support is not available
digikam.general: Cannot get video thumb for
"/hdd/archive/image_archive/test-files/krita-good.kra"
digikam.general: Video support is not available
digikam.metaengine: Cannot load metadata from file   (Error # 11 :
/hdd/archive/image_archive/test-files/krita-good.kra: The file contains
data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :
/hdd/archive/image_archive/test-files/krita-good.kra: The file contains
data of an unknown image type
digikam.dimg: "/hdd/archive/image_archive/test-files/krita-good.kra"  :
QIMAGE file identified
digikam.dimg.qimage: Can not load "
"/hdd/archive/image_archive/test-files/krita-good.kra" " using
DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "KRA"
digikam.general: Cannot create thumbnail for
"/hdd/archive/image_archive/test-files/krita-good.kra"
digikam.general: Thumbnail is null for
"/hdd/archive/image_archive/test-files/krita-good.kra"
digikam.general: Cannot get video thumb for
"/hdd/archive/image_archive/test-files/krita-good.kra"
digikam.general: Video support is not available
digikam.metaengine: Cannot load metadata from file   (Error # 11 :
/hdd/archive/image_archive/test-files/test-embedded-png.kra: The file
contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :
/hdd/archive/image_archive/test-files/test-embedded-png.kra: The file
contains data of an unknown image type
digikam.dimg:
"/hdd/archive/image_archive/test-files/test-embedded-png.kra"  : QIMAGE
file identified
digikam.dimg.qimage: Can not load "
"/hdd/archive/image_archive/test-files/test-embedded-png.kra" " using
DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "KRA"
digikam.general: Cannot create thumbnail for
"/hdd/archive/image_archive/test-files/test-embedded-png.kra"
digikam.general: Thumbnail is null for
"/hdd/archive/image_archive/test-files/test-embedded-png.kra"
digikam.general: Cannot get video thumb for
"/hdd/archive/image_archive/test-files/test-embedded-png.kra"
digikam.general: Video support is not available
digikam.metaengine: Cannot load metadata from file   (Error # 11 :
/hdd/archive/image_archive/test-files/test-filmic.xcf: The file contains
data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 :
/hdd/archive/image_archive/test-files/test-filmic.xcf: The file contains
data of an unknown image type
digikam.dimg: "/hdd/archive/image_archive/test-files/test-filmic.xcf"  :
QIMAGE file identified
digikam.dimg.qimage: Can not load "
"/hdd/archive/image_archive/test-files/test-filmic.xcf" " using
DImg::QImageLoader!
digikam.general: mimetype =  "XCF"  ext =  "XCF"
digikam.general: Cannot create thumbnail for
"/hdd/archive/image_archive/test-files/test-filmic.xcf"
digikam.general: Thumbnail is null for
"/hdd/archive/image_archive/test-files/test-filmic.xcf"
digikam.general: Cannot get video thumb for
"/hdd/archive/image_archive/test-files/test-filmic.xcf"
digikam.general: Video support is not available
digikam.general: scan mode: ScanDeferredFiles
digikam.general: total scan value :  23825
digikam.database: items to tag ()
digikam.database: Complete scan took: 558 msecs.
digikam.general: Event is dispatched to desktop notifier through DBUS
Creating the cache for:
"/hdd/archive/image_archive/test-files/test-embedded-png.kra"

--
http://ninedegreesbelow.com
Color management and free/libre photography
Reply | Threaded
Open this post in threaded view
|

Re: digiKam 5.7.0 doesn't show krita kra thumbnails

Gilles Caulier-4
The krita thumbnailer is not in digiKam. It's delegate to frameworks from KDE. It's a run time dependency (QImage loader plugins).



Note : more format can be loaded with this one too : https://api.kde.org/frameworks/kimageformats/html/index.html

If the package is not installed, DK will not recognize the format through the internal QImage loader and it will try RAW, and video loader. So your trace is just a side effect of the dysfunction.

If you use the AppImage, the frameworks are compiled and bundled, but for an obscur reason, there are not found and used. It's a bug in the AppImage that i build, and i not found yet the reason. A DK compiled and installed on my system work as expected if extra packages are installed.

Gilles Caulier

2017-10-25 2:58 GMT+02:00 Elle Stone <[hidden email]>:
On 10/24/2017 08:50 PM, Elle Stone wrote:
As per the subject line, krita kra thumbnails aren't displayed in digiKam.

Oh, here's the terminal output when digiKam gets to the kra files - why is digiKam trying to load a "video thumb" for a krita kra file?

Is there some additional KDE software that needs to be installed, that maybe I haven't yet installed?

#terminal output:

digikam.general: Cannot get video thumb for "/hdd/archive/image_archive/test-files/test-embedded-png.kra"
digikam.general: Video support is not available
digikam.general: Cannot get video thumb for "/hdd/archive/image_archive/test-files/test-filmic.xcf"
digikam.general: Video support is not available
digikam.general: Cannot get video thumb for "/hdd/archive/image_archive/test-files/krita-good.kra"
digikam.general: Video support is not available
digikam.metaengine: Cannot load metadata from file   (Error # 11 : /hdd/archive/image_archive/test-files/krita-good.kra: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 : /hdd/archive/image_archive/test-files/krita-good.kra: The file contains data of an unknown image type
digikam.dimg: "/hdd/archive/image_archive/test-files/krita-good.kra"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/hdd/archive/image_archive/test-files/krita-good.kra" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "KRA"
digikam.general: Cannot create thumbnail for "/hdd/archive/image_archive/test-files/krita-good.kra"
digikam.general: Thumbnail is null for "/hdd/archive/image_archive/test-files/krita-good.kra"
digikam.general: Cannot get video thumb for "/hdd/archive/image_archive/test-files/krita-good.kra"
digikam.general: Video support is not available
digikam.metaengine: Cannot load metadata from file   (Error # 11 : /hdd/archive/image_archive/test-files/test-embedded-png.kra: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 : /hdd/archive/image_archive/test-files/test-embedded-png.kra: The file contains data of an unknown image type
digikam.dimg: "/hdd/archive/image_archive/test-files/test-embedded-png.kra"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/hdd/archive/image_archive/test-files/test-embedded-png.kra" " using DImg::QImageLoader!
digikam.general: mimetype =  ""  ext =  "KRA"
digikam.general: Cannot create thumbnail for "/hdd/archive/image_archive/test-files/test-embedded-png.kra"
digikam.general: Thumbnail is null for "/hdd/archive/image_archive/test-files/test-embedded-png.kra"
digikam.general: Cannot get video thumb for "/hdd/archive/image_archive/test-files/test-embedded-png.kra"
digikam.general: Video support is not available
digikam.metaengine: Cannot load metadata from file   (Error # 11 : /hdd/archive/image_archive/test-files/test-filmic.xcf: The file contains data of an unknown image type
digikam.general: Trying to load Embedded preview with libraw
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to load half preview with libraw
digikam.general: Trying to load Embedded preview with Exiv2
digikam.metaengine: Cannot load metadata using Exiv2   (Error # 11 : /hdd/archive/image_archive/test-files/test-filmic.xcf: The file contains data of an unknown image type
digikam.dimg: "/hdd/archive/image_archive/test-files/test-filmic.xcf"  : QIMAGE file identified
digikam.dimg.qimage: Can not load " "/hdd/archive/image_archive/test-files/test-filmic.xcf" " using DImg::QImageLoader!
digikam.general: mimetype =  "XCF"  ext =  "XCF"
digikam.general: Cannot create thumbnail for "/hdd/archive/image_archive/test-files/test-filmic.xcf"
digikam.general: Thumbnail is null for "/hdd/archive/image_archive/test-files/test-filmic.xcf"
digikam.general: Cannot get video thumb for "/hdd/archive/image_archive/test-files/test-filmic.xcf"
digikam.general: Video support is not available
digikam.general: scan mode: ScanDeferredFiles
digikam.general: total scan value :  23825
digikam.database: items to tag ()
digikam.database: Complete scan took: 558 msecs.
digikam.general: Event is dispatched to desktop notifier through DBUS
Creating the cache for: "/hdd/archive/image_archive/test-files/test-embedded-png.kra"


--
http://ninedegreesbelow.com
Color management and free/libre photography

Reply | Threaded
Open this post in threaded view
|

Re: digiKam 5.7.0 doesn't show krita kra thumbnails

Elle Stone-2
On 10/25/2017 01:55 PM, Gilles Caulier wrote:
> Note : more format can be loaded with this one too :
> https://api.kde.org/frameworks/kimageformats/html/index.html
>
> If the package is not installed, DK will not recognize the format through
> the internal QImage loader and it will try RAW, and video loader. So your
> trace is just a side effect of the dysfunction.

Hi Gilles,

Thanks! for responding. I'm not using the appimage. I have digiKam
installed from Gentoo portage. I also have
kde-frameworks/kimageformats-5.37.0 installed from Gentoo portage, which
installs these files:

/usr
/usr/lib64
/usr/lib64/qt5
/usr/lib64/qt5/plugins
/usr/lib64/qt5/plugins/imageformats
/usr/lib64/qt5/plugins/imageformats/kimg_exr.so
/usr/lib64/qt5/plugins/imageformats/kimg_kra.so
/usr/lib64/qt5/plugins/imageformats/kimg_ora.so
/usr/lib64/qt5/plugins/imageformats/kimg_pcx.so
/usr/lib64/qt5/plugins/imageformats/kimg_pic.so
/usr/lib64/qt5/plugins/imageformats/kimg_psd.so
/usr/lib64/qt5/plugins/imageformats/kimg_ras.so
/usr/lib64/qt5/plugins/imageformats/kimg_rgb.so
/usr/lib64/qt5/plugins/imageformats/kimg_tga.so
/usr/lib64/qt5/plugins/imageformats/kimg_xcf.so
/usr/share
/usr/share/doc
/usr/share/doc/kimageformats-5.37.0
/usr/share/doc/kimageformats-5.37.0/AUTHORS.bz2
/usr/share/kservices5
/usr/share/kservices5/qimageioplugins
/usr/share/kservices5/qimageioplugins/dds.desktop
/usr/share/kservices5/qimageioplugins/exr.desktop
/usr/share/kservices5/qimageioplugins/jp2.desktop
/usr/share/kservices5/qimageioplugins/kra.desktop
/usr/share/kservices5/qimageioplugins/ora.desktop
/usr/share/kservices5/qimageioplugins/pcx.desktop
/usr/share/kservices5/qimageioplugins/pic.desktop
/usr/share/kservices5/qimageioplugins/psd.desktop
/usr/share/kservices5/qimageioplugins/ras.desktop
/usr/share/kservices5/qimageioplugins/rgb.desktop
/usr/share/kservices5/qimageioplugins/tga.desktop
/usr/share/kservices5/qimageioplugins/xcf.desktop

Is there some other library that also needs to be installed?

When starting digiKam, is a command for building that KDE cache thing
(sorry, don't remember the exact word, something like "ksyscocacache")
still necessary? Or maybe a command to start dbus in a particular way?

If it matters, I don't have any qt4 libraries installed, and my
"desktop" is IceWM.

Best regards,
Elle

Reply | Threaded
Open this post in threaded view
|

Re: digiKam 5.7.0 doesn't show krita kra thumbnails

Gilles Caulier-4
DK is not qt4, but qt5 now. It's just a detail.

kbuildsyscoca5 must be the command line to update the cache. but the RPM must call this tool after to install. Try to restart the system to force a complete plugin rescan.

Gilles Caulier



2017-10-25 20:57 GMT+02:00 Elle Stone <[hidden email]>:
On 10/25/2017 01:55 PM, Gilles Caulier wrote:
Note : more format can be loaded with this one too :
https://api.kde.org/frameworks/kimageformats/html/index.html

If the package is not installed, DK will not recognize the format through
the internal QImage loader and it will try RAW, and video loader. So your
trace is just a side effect of the dysfunction.

Hi Gilles,

Thanks! for responding. I'm not using the appimage. I have digiKam installed from Gentoo portage. I also have kde-frameworks/kimageformats-5.37.0 installed from Gentoo portage, which installs these files:

/usr
/usr/lib64
/usr/lib64/qt5
/usr/lib64/qt5/plugins
/usr/lib64/qt5/plugins/imageformats
/usr/lib64/qt5/plugins/imageformats/kimg_exr.so
/usr/lib64/qt5/plugins/imageformats/kimg_kra.so
/usr/lib64/qt5/plugins/imageformats/kimg_ora.so
/usr/lib64/qt5/plugins/imageformats/kimg_pcx.so
/usr/lib64/qt5/plugins/imageformats/kimg_pic.so
/usr/lib64/qt5/plugins/imageformats/kimg_psd.so
/usr/lib64/qt5/plugins/imageformats/kimg_ras.so
/usr/lib64/qt5/plugins/imageformats/kimg_rgb.so
/usr/lib64/qt5/plugins/imageformats/kimg_tga.so
/usr/lib64/qt5/plugins/imageformats/kimg_xcf.so
/usr/share
/usr/share/doc
/usr/share/doc/kimageformats-5.37.0
/usr/share/doc/kimageformats-5.37.0/AUTHORS.bz2
/usr/share/kservices5
/usr/share/kservices5/qimageioplugins
/usr/share/kservices5/qimageioplugins/dds.desktop
/usr/share/kservices5/qimageioplugins/exr.desktop
/usr/share/kservices5/qimageioplugins/jp2.desktop
/usr/share/kservices5/qimageioplugins/kra.desktop
/usr/share/kservices5/qimageioplugins/ora.desktop
/usr/share/kservices5/qimageioplugins/pcx.desktop
/usr/share/kservices5/qimageioplugins/pic.desktop
/usr/share/kservices5/qimageioplugins/psd.desktop
/usr/share/kservices5/qimageioplugins/ras.desktop
/usr/share/kservices5/qimageioplugins/rgb.desktop
/usr/share/kservices5/qimageioplugins/tga.desktop
/usr/share/kservices5/qimageioplugins/xcf.desktop

Is there some other library that also needs to be installed?

When starting digiKam, is a command for building that KDE cache thing (sorry, don't remember the exact word, something like "ksyscocacache") still necessary? Or maybe a command to start dbus in a particular way?

If it matters, I don't have any qt4 libraries installed, and my "desktop" is IceWM.

Best regards,
Elle


Reply | Threaded
Open this post in threaded view
|

Re: digiKam 5.7.0 doesn't show krita kra thumbnails

Elle Stone-2
On 10/25/2017 03:01 PM, Gilles Caulier wrote:
> kbuildsyscoca5 must be the command line to update the cache. but the RPM
> must call this tool after to install. Try to restart the system to force a
> complete plugin rescan.

My apologies, I don't understand. DigiKam and kimageformats were both
already installed from Gentoo portage when I started my computer this
morning. So I don't think restarting the computer will change anything.

Is it possible that, in order to read the .kra embedded png, digiKam
requires some additional qt5 or kframeworks components, or other
libraries, that I might not have installed?

Is "kbuildsyscoca5" an executable that can be run from the command line
(I thought it was, but maybe I'm misremembering)? If it is an
executable, apparently it's not currently installed on my system. What
package is it in?

Best,
Elle

Reply | Threaded
Open this post in threaded view
|

Re: digiKam 5.7.0 doesn't show krita kra thumbnails

Gilles Caulier-4
[gilles@localhost ~]$ kbuildsycoca5 --help
Utilisation : kbuildsycoca5 [options]
Reconstruit le cache de configuration système.

Options :
 -h, --help                      Afficher cette aide.
 -v, --version                   Afficher les informations de version.
 --author                        Afficher les informations sur l'auteur.
 --license                       Afficher les informations sur la licence.
 --desktopfile <nom du fichier>  La base du nom de fichier de l'entrée desktop
                                 pour cette application.
 --nosignal                      Ne pas avertir des applications à mettre à
                                 jour (obsolète, n'a plus aucun effet)
 --noincremental                 Désactiver la mise à jour incrémentale, tout
                                 relire
 --checkstamps                   Vérifier l'horodatage du fichier (obsolète,
                                 n'a plus aucun effet)
 --nocheckfiles                  Désactiver la vérification des fichiers
                                 (obsolète, n'a plus aucun effet)
 --global                        Créer une base de données globale
 --menutest                      Effectuer seulement l'exécution de tests de
                                 génération de menu
 --track <menu-id>               Suivre l'identifiant de menu à des fins de                                                                                                                                        
                                 débogage                                                                                                                                                                          
 --testmode                      Basculer QStandardPaths en mode test, pour                                                                                                                                        
                                 les tests unitaires uniquement 

Gilles Caulier                                                                                                                                                                                              
                           

2017-10-25 21:27 GMT+02:00 Elle Stone <[hidden email]>:
On 10/25/2017 03:01 PM, Gilles Caulier wrote:
kbuildsyscoca5 must be the command line to update the cache. but the RPM
must call this tool after to install. Try to restart the system to force a
complete plugin rescan.

My apologies, I don't understand. DigiKam and kimageformats were both already installed from Gentoo portage when I started my computer this morning. So I don't think restarting the computer will change anything.

Is it possible that, in order to read the .kra embedded png, digiKam requires some additional qt5 or kframeworks components, or other libraries, that I might not have installed?

Is "kbuildsyscoca5" an executable that can be run from the command line (I thought it was, but maybe I'm misremembering)? If it is an executable, apparently it's not currently installed on my system. What package is it in?

Best,
Elle


Reply | Threaded
Open this post in threaded view
|

Re: digiKam 5.7.0 doesn't show krita kra thumbnails

Gilles Caulier-4
In reply to this post by Elle Stone-2


2017-10-25 21:27 GMT+02:00 Elle Stone <[hidden email]>:
On 10/25/2017 03:01 PM, Gilles Caulier wrote:
kbuildsyscoca5 must be the command line to update the cache. but the RPM
must call this tool after to install. Try to restart the system to force a
complete plugin rescan.

My apologies, I don't understand. DigiKam and kimageformats were both already installed from Gentoo portage when I started my computer this morning. So I don't think restarting the computer will change anything.

Is it possible that, in order to read the .kra embedded png, digiKam requires some additional qt5 or kframeworks components, or other libraries, that I might not have installed?

No idea, and i don't think...

Gilles Caulier
Reply | Threaded
Open this post in threaded view
|

Re: digiKam 5.7.0 doesn't show krita kra thumbnails

Elle Stone-2
On 10/25/2017 03:31 PM, Gilles Caulier wrote:
>> Is it possible that, in order to read the .kra embedded png, digiKam
>> requires some additional qt5 or kframeworks components, or other libraries,
>> that I might not have installed?
>>
> No idea, and i don't think...

Well, then, I appreciate the attempt to help, but I think I'll just give
up - apparently digiKam can't show Krita .kra files on my computer.

On to the next task, which is getting digiKam to allow rearranging the
tag tree. Except after five years of trial and error, bug reports and
trying workarounds, rearranging the digiKam tag tree still doesn't seem
to work. But maybe I can figure out a script to use exiftool for moving
a sub-branch in the tagslist xmp tag up to the level of a top branch.

Sigh.

Best regards,
Elle