SUMMARY NEF file not added to database. STEPS TO REPRODUCE 1. From konsole start kphotoalbum and choose the demo database. 2. Paste a NEF File to the demo directory. 3. Maintenance - Rescan for Images and Videos, then Refresh and Save. OBSERVED RESULT NEF file is not added to the database (checked after Save in index.xml file) and not shown in thumbnail view. EXPECTED RESULT NEF file is added to the database and shown in thumbnail view. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.2.4 KDE Frameworks Version: 6.9.0 Qt Version: 6.8.1 Kernel Version: 6.12.1-arch1-Watanare-T2-1-t2 (64-bit) Graphics Platform: Wayland ADDITIONAL INFORMATION If a JPG file is copied to the demo directory, it gets added to the database and displayed in viewer as expected. NEF files are displayed in gwenview and geeqie. All dependencies of kphotoalbum (from pacman -Qi) are installed.
Additional information: After downgrading to kphotoalbum-5.13.0, marble-common-24.08.3, and marble-24.08.3, NEF files are added to the database and show in viewer.
Hi, thanks for your bug reports! Would you mind to provide an example NEF file? I don't use or have RAW photos, so I can't test it …
Thanks for looking into this. Here one NEF: https://drive.google.com/file/d/1-koDMB9jADvue-d_zu6uVN8GSdXay9kU/view?usp=sharing
Okay. Qt itself can actually process this type of image (I tried it with KGeoTag, which doesn't use a raw image library, but only Qt functionality, and I could open your file). The problem is that currently, KPhotoAlbum doesn't classify this file as readable. Whilst searching for new images, two checks are done: 1. If QImageReader lists the MIME type and if not 2. if one of our decoders can read it. The MIME type is "image/x-nikon-nef" in your case. This is not directly listed in QImageReader::supportedMimeTypes(), but it also wasn't for KPA 5. The difference is that KPA 5 stated it would be still decodeable (calling ImageManager::ImageDecoder::mightDecode), but KPA 6 doesn't anymore. This needs a closer inspection …