[Digikam-users] Update embedded JPEG of RAW Files

GDoirat - GMail gaylord.doirat at gmail.com
Tue Nov 4 22:56:36 GMT 2014


Good evening
I've just made some tests on 3 DNG Pictures.
This is working perfectly!
I test the full process until exporting on my piwigo gallery... Really
great; thanks a lot.
Gaylord

2014-11-03 23:45 GMT+01:00 GDoirat - GMail <gaylord.doirat at gmail.com>:

> Hi Elle,
>
> Thanks a lot for your answer.
> Sounds great. I will try this. As I have DNG raw file, i have to change to
> -ext DNG . Hopefully exiftool can read/write DNG !! [?]
> If this is working this will solve my problem.
> My workflow to process my rawfile would be then :
>
>    - Import raw files in darktable
>    - Rate (star) rawfiles in darktable
>    - Developpe rated rawfiles (files not rated aren't good, so i don't
>    loose time to developpe them)
>    - Export Jpeg
>    - Use ExifTool to update embedded JPEG of rawfiles
>    - Erase Exported JPEG
>    - Open Digikam : he will scan new files and import xmp info (number of
>    star) and show me embedded JPEG updated
>    - Finish to complete pictures informations in DK (localization, face
>    recognition, tags, comments...)
>
> This will avoid me to have duplicated files (RAW + JPEG) which was really
> a pity for me.
>
> I will confirm if this okay in a futur mail, once I could try this more
> precisely.
>
> See you
>
> Gaylord
>
> 2014-11-03 11:54 GMT+01:00 Elle Stone <ellestone at ninedegreesbelow.com>:
>
>> On 11/02/2014 06:04 PM, GDoirat - GMail wrote:
>>>
>>>> Hello Everybody
>>>>
>>>> I use Digikam to manage my photo database for many years.
>>>> With my first camera, i took my pictures in JPEG... Digikam was really
>>>> great.
>>>> I bought a SLR camera and started to took pictures in RAW.
>>>> I prefer to developpe my raw files in another software than digikam;
>>>> but i still really like photo database managment of DK. But preview of
>>>> raws are not updated when i do changes in the raw file (i'm using
>>>> darktable).
>>>> Is there a way (a software included or not in digikam) to update
>>>> embedded raws with exported jpeg from darktable in order that digikam
>>>> display a raw preview which includes changes done in darktable?
>>>> My search on web make me realised that Lightroom seems to be abble to
>>>> do that but i didn't succeed in finding a way to to that on linux.
>>>>
>>>
>> Hmm, I have also wished that I could overwrite the embedded preview jpeg,
>> and also always just assumed that you can't change the embedded preview
>> jpeg.
>>
>> But actually it turns out that you *can* overwrite the embedded preview
>> using exiftool. It's a bit round about:
>>
>> First develop the raw file.
>> Then save a copy of the developed raw file as a jpeg.
>> Then use exiftool to embed the "new preview" jpeg into the raw file,
>> writing right over the top of the orginal embedded jpeg.
>>
>> See this page:
>> http://u88.n24.queensu.ca/exiftool/forum/index.php/
>> topic,2245.0.html?PHPSESSID=njo90ntbht6qapg9on7i9q4l81
>>
>> /////// Quoting Phil (exiftool author) from the above link:
>> If I understand you correctly, you want to write same-named
>> JPEG images as the PreviewImage for a set of CR2 files.
>>
>> exiftool "-previewImage<=JPGDIR/%f.jpg" -ext cr2 CR2DIR
>> /////// end quote
>>
>> I tested the command and it does work. "JPGDIR" and "CR2DIR" need to be
>> replaced with whatever directories the files are in (can be the same
>> directory).
>>
>> It probably wouldn't be too difficult to write a script to automate the
>> process. Just make sure you test thoroughly on some throwaway images. I
>> managed to mess up a raw file by running the command with the wrong syntax.
>>
>> I believe your new preview image must have the same size (and possibly
>> the same orientation) as the original preview, but I haven't confirmed.
>>
>> I don't know which embedded file digiKam shows (there are several to
>> choose from), but I will guess it's the previewImage.
>>
>> Also see reading and writing examples from http://www.sno.phy.queensu.ca/
>> ~phil/exiftool/exiftool_pod.html
>>
>> Not every camera raw file has exactly the same set of embedded images.
>> For example, my canon raw files don't seem to have the "JpgFromRaw" that is
>> referenced in the exiftool reading and writing examples.
>>
>> Elle
>>
>>
>>
>>
>> _______________________________________________
>> Digikam-users mailing list
>> Digikam-users at kde.org
>> https://mail.kde.org/mailman/listinfo/digikam-users
>>
>
>
>
> --
> ________________________________________
> La vie est plus belle quand on est libre !
> @@@@@@ LINUX @@@@@@
>
> Libérez vos oreilles : www.jamendo.fr
>



-- 
________________________________________
La vie est plus belle quand on est libre !
@@@@@@ LINUX @@@@@@

Libérez vos oreilles : www.jamendo.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20141104/54d1b476/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 330.gif
Type: image/gif
Size: 96 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20141104/54d1b476/attachment.gif>


More information about the Digikam-users mailing list