Getting confused with MIME-types: RAW thumbnails
2008-11-13 18:14:56 GMT
Hi
I've installed both ROX-tumbnailers and RAWThumbnail apps (in this order), and I'm getting problems having my Canon RAW thumbnails being extracted and consequentially displayed in ROX's windows.
RAWThumbnail in itself is working fine (verified with the author by calling via script, it builds the PNG), the problem resides in MIME settings and in the way ROX treat them, settings which I realized I'm not understanding very well and trying to working on them I'm getting confued. In fact, if a query a tipycal Canon RAW in this way I get:
$file IMG_8014.CR2
IMG_8014.CR2: TIFF image data, little-endian
If I look for MIME settings in this way:
$gnomevfs-info IMG_8014.CR2
Name : IMG_8014.CR2
Type : Regular
MIME type : image/x-canon-cr2
Size : 10369894
Blocks : 20256
I/O block size : 4096
Local : YES
SUID : NO
SGID : NO
Sticky : NO
Permissions : 600777
Link count : 1
UID : 0
GID : 0
Access time : Sat Sep 20 17:23:36 2008
Modification time : Sat Sep 20 17:22:49 2008
Change time : Mon Sep 29 00:39:17 2008
Device # : 2081
Inode # : 21174
Readable : YES
Writable : YES
Executable : NO
finally, if I right click on file via ROX and select File/Properties, ROX tell me:
Type: image/x-dcraw
...
following is my current settings:
1)
I've added via MIME RoxApp an handler to override .CR2 (other than .cr2) MIME type to be x-canon-cr2 (it looks like the author forgot capitalized ones, or I'm missing understand something maybe):
$cat .local/share/mime/image/x-canon-cr2
?xml version="1.0" encoding="utf-8"?>
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="image/x-canon-cr2">
<!--Created automatically by update-mime-database. DO NOT EDIT!-->
</mime-type>
The way I've added it is by including in the local Override.xml a correct XML item and running update-mime-database, after reading documentation in
http://library.gnome.org/admin/system-admin-guide/2.22/mimetypes-modifying.html.en
$ cat .local/share/mime/packages/Override.xml
cat .local/share/mime/packages/Override.xml
<?xml version="1.0" ?><mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-extension-BIF"><comment>BIF document</comment><glob pattern="*.BIF"/></mime-type>
<mime-type type="image/x-canon-cr2"><glob pattern="*.CR2"/></mime-type></mime-info>
2)
global freedesktop.org.xml has been modified according to RAWthumbnailers documentation by commenting out the:
<sub-class-of type="image/tiff"/>
line
$cat /usr/share/mime/packages/freedesktop.org.xml
<mime-type type="image/x-canon-cr2">
<sub-class-of type="image/x-dcraw"/>
<!-- sub-class-of type="image/tiff"/ -->
<comment>Canon CR2 raw image</comment>
<comment xml:lang="bg">Изображение — Canon CR2 raw</comment>
<comment xml:lang="ca">imatge en cru de Canon CR2</comment>
<comment xml:lang="cs">Surový obrázek Canon CR2</comment>
<comment xml:lang="en_GB">Canon CR2 raw image</comment>
<comment xml:lang="fi">Canon-CR2-raakakuva</comment>
<comment xml:lang="fr">image brute CR2 Canon</comment>
<comment xml:lang="it">Immagine raw Canon CR2</comment>
<comment xml:lang="nb">Canon CR2 raw-bilde</comment>
<comment xml:lang="nl">onbewerkt Canon CR2-beeld</comment>
<comment xml:lang="sv">Canon CR2-råbild</comment>
<acronym>CR2</acronym>
<expanded-acronym>Canon Raw 2</expanded-acronym>
<glob pattern="*.cr2"/>
---
3)
also exists a gnome-raw-thumbnailer.xml created by ROXthumbnailer, which is probably involved in the problem I'm trying to solve, but I don't know how to override it/remove/modify it to let ROX read my MIME settings in the way I like:
$ cat /usr/share/mime/packages/gnome-raw-thumbnailer.xml
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="image/x-dcraw">
<comment>Digital Camera RAW</comment>
<comment xml:lang="cs">RAW soubor digitálního fotoaparátu</comment>
<glob pattern="*.bay" />
<glob pattern="*.BAY" />
<glob pattern="*.bmq" />
<glob pattern="*.BMQ" />
<glob pattern="*.cr2" />
<glob pattern="*.CR2" />
<glob pattern="*.crw" />
<glob pattern="*.CRW" />
<glob pattern="*.cs1" />
<glob pattern="*.CS1" />
<glob pattern="*.dc2" />
<glob pattern="*.DC2" />
<glob pattern="*.dcr" />
<glob pattern="*.DCR" />
<glob pattern="*.fff" />
<glob pattern="*.FFF" />
<glob pattern="*.k25" />
<glob pattern="*.K25" />
<glob pattern="*.kdc" />
<glob pattern="*.KDC" />
<glob pattern="*.mos" />
<glob pattern="*.MOS" />
<glob pattern="*.mrw" />
<glob pattern="*.MRW" />
<glob pattern="*.nef" />
<glob pattern="*.NEF" />
<glob pattern="*.orf" />
<glob pattern="*.ORF" />
<glob pattern="*.pef" />
<glob pattern="*.PEF" />
<glob pattern="*.raf" />
<glob pattern="*.RAF" />
<glob pattern="*.rdc" />
<glob pattern="*.RDC" />
<glob pattern="*.srf" />
<glob pattern="*.SRF" />
<glob pattern="*.x3f" />
<glob pattern="*.X3F" />
</mime-type>
</mime-info>
...
The other ROX desktop I get at home is working fine: ROXthumbnailers is not installed, just the RAWThumbnail, and I'm missing the /usr/share/mime/packages/gnome-raw-thumbnailer.xml, which is probably the cause.
What I am not understanding is: how to uninstall it?
Anyone can help me cleaning this situation?
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ rox-users mailing list rox-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rox-users
RSS Feed