Bug 126881 - No Thumbnails for Nikon Raw Images
Summary: No Thumbnails for Nikon Raw Images
Status: RESOLVED WORKSFORME
Alias: None
Product: kfile-plugins
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-07 04:02 UTC by Dan Olson
Modified: 2013-05-07 23:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Olson 2006-05-07 04:02:16 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    FreeBSD Ports
Compiler:          gcc 3.4.4 
OS:                FreeBSD

Nikon raw files with the extension *.nef, do not show thumbnails after updating to KDE 3.5.  

The nef files actually have an embeded tiff file as a preview.  When doing a hex dump of the first few bytes of the file it matches the mime type of a big-endian tiff file, MM\x00\x2a.  When the mime type of x-raw is removed it is identified as a tiff file and the embedded tiff preview is shown as a thumbnail but no program associations can be made to open the raw image.  If the file extension is registered in File Associations in the Control Panel, programs can be assigned to open the raw file but Konqeror no longer shows a preview of the file.
Comment 1 Chris Howells 2006-05-30 00:41:01 UTC
Did this work in a previous version of KDE? Are you able to attach a sample image which doesn't work?

Thanks.
Comment 2 Dan Olson 2006-05-30 01:49:23 UTC
Yes, this worked in version 3.4 of KDE.  I don't know if it is appropriate to attach large pictures here. But here is a link to a 6 MB test image on my home server.

http://209.98.225.50/~olson/pictures/test.nef

Thanks for looking at this.

Dan
Comment 3 Dan Olson 2006-07-02 21:58:47 UTC
So I think I've figured it out.

Back on Feb 8, the kdelibs/kio/magic file was changed to include x-raw which includes raw image formats from many different cameras, including my Nikon, *.nef. This file is installed in /usr/local/share/mimelnk/magic on my FreeBSD system.  

The file that controls image thumbnail creation is kdebase/kioslave/thumbnail/imagethumbnail.desktop which is installed to /usr/local/share/services/imagethumbnail.desktop. This file needs to have image/x-raw added to the MimeType line. With this line added my raw files now get image previews in konqueror.

My nef files have a tiff preview embedded in the file. I've also checked a cr2 file which also has a tiff preview. I do not know what will happen if a raw file without a preview is accessed to make a thumbnail or other raw files with different image preview formats.
Comment 4 Risto H. Kurppa 2007-05-17 01:23:32 UTC
I think I can confirm this: Kubuntu Feisty w. KDE 3.5.6: Konqueror doesn't show thumbnails for .nef files and KPhotoAlbum shows only a low res version of the actual image. Really annoying.
Comment 5 Risto H. Kurppa 2007-06-07 02:29:41 UTC
Kubuntu Feisty w. KDE 3.5.7:
I added image/x-raw to /usr/share/services/imagethumbnail.desktop

Then I added the embedded image viewer (khtmlimage) as default embedded viewer.

Now I can see NEF thumbnails in Konqueror which is great! Though I also needed to increase the file size limit to 7 megs to be able to see thumbnails of all NEFs.

I don't know if Konq is supposed to show also the 'full quality' TIFFs with the embedded viewer, for me it shows only the same 160px thumbnail.
Comment 6 Risto H. Kurppa 2007-09-14 05:25:09 UTC
In the svn version this works now great, if you have libkdcraw installed.
Comment 7 Maarten De Meyer 2013-05-07 23:49:43 UTC
(In reply to comment #6)
> In the svn version this works now great, if you have libkdcraw installed.

So this is fixed?
If not please reopen and upload a new example file.