How-to: Samsung raw photos (SRW) support in gThumb
Hello,
I was looking for an alternative to Shotwell workflow to import photos from an SD card and found that gThumb doesn't support the Samsung raw photos SRW files.
So I created a mime type package file (/usr/share/mime/packages/samsung-raw.xml):
HTML Code:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="image/x-samsung-srw">
<comment>Samsung raw image</comment>
<comment xml:lang="bg">Изображение — Samsung SRW</comment>
<comment xml:lang="ca">imatge «SRW» de Samsung</comment>
<comment xml:lang="cs">surový obrázek Samsung SRW</comment>
<comment xml:lang="da">Samsung-srw-billede (raw)</comment>
<comment xml:lang="de">Samsung SRW-Bild</comment>
<comment xml:lang="el">Ανεπεξέργαστη εικόνα Samsung (SRW)</comment>
<comment xml:lang="en_GB">Samsung SRW image</comment>
<comment xml:lang="es">imagen en bruto SRW de Samsung</comment>
<comment xml:lang="eu">Samsung SRW irudia</comment>
<comment xml:lang="fi">Samsung SRW -kuva</comment>
<comment xml:lang="fr">image SRW Samsung</comment>
<comment xml:lang="ga">íomhá SRW Samsung</comment>
<comment xml:lang="gl">imaxe en bruto SRW de Samsung</comment>
<comment xml:lang="he">תמונת SRW של Samsung</comment>
<comment xml:lang="hr">Samsung SRW image</comment>
<comment xml:lang="hu">Samsung SRW kép</comment>
<comment xml:lang="ia">Imagine SRW Samsung</comment>
<comment xml:lang="id">Image Samsung SRW</comment>
<comment xml:lang="it">Immagine SRW Samsung</comment>
<comment xml:lang="ja">Samsung SRW 画像</comment>
<comment xml:lang="kk">Samsung SRW суреті</comment>
<comment xml:lang="ko">파나소닉 RAW2 사진</comment>
<comment xml:lang="lv">Samsung SRW jēlattēls</comment>
<comment xml:lang="nl">Samsung SRW image</comment>
<comment xml:lang="oc">imatge SRW Samsung</comment>
<comment xml:lang="pl">Obraz SRW Samsung</comment>
<comment xml:lang="pt">imagem em bruto Samsung</comment>
<comment xml:lang="pt_BR">Imagem SRW da Samsung</comment>
<comment xml:lang="ru">Необработанное изображение Samsung SRW</comment>
<comment xml:lang="sk">Surový obrázok Samsung SRW</comment>
<comment xml:lang="sl">Slikovna datoteka Samsung SRW</comment>
<comment xml:lang="sr">Панасоник сирова2 слика</comment>
<comment xml:lang="sv">Samsung SRW-bild</comment>
<comment xml:lang="tr">Samsung SRW görüntüsü</comment>
<comment xml:lang="uk">зображення формату SRW Samsung</comment>
<comment xml:lang="zh_CN">松下 SRW 图像</comment>
<comment xml:lang="zh_TW">Samsung SRW 影像</comment>
<sub-class-of type="image/x-dcraw"/>
<magic priority="50">
<match value="MM\x00\x2A\x00\x00" type="string" offset="0"/>
</magic>
<glob pattern="*.SRW"/>
<glob pattern="*.srw"/>
<alias type="image/x-samsung-srw"/>
</mime-type>
</mime-info>
... and updated the mime database with sudo update-mime-database /usr/share/mime
Now Nautilus can distinguish the SRW files from tiff and so I could assign Geeqie as the viewer application for SRW, and gThumb understands it as a raw image format and is even able to display it.
Re: How-to: Samsung raw photos (SRW) support in gThumb
You know, I have absolutely no idea what you are talking about, but I am sure that there are people out there that will love seeing this someday! Thanks for sharing!