<div dir="ltr"><div><div><div><div>Hi Elle,<br><br></div>Thanks a lot for your answer.<br></div>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 !! <img goomoji="330" style="margin: 0px 0.2ex; vertical-align: middle;" src="cid:330@goomoji.gmail"><br></div>If this is working this will solve my problem.<br></div>My workflow to process my rawfile would be then :<br><ul><li>Import raw files in darktable</li><li>Rate (star) rawfiles in darktable</li><li>Developpe rated rawfiles (files not rated aren't good, so i don't loose time to developpe them)</li><li>Export Jpeg</li><li>Use ExifTool to update embedded JPEG of rawfiles</li><li>Erase Exported JPEG<br></li><li>Open Digikam : he will scan new files and import xmp info (number of star) and show me embedded JPEG updated</li><li>Finish to complete pictures informations in DK (localization, face recognition, tags, comments...)</li></ul><p>This will avoid me to have duplicated files (RAW + JPEG) which was really a pity for me.</p><p>I will confirm if this okay in a futur mail, once I could try this more precisely.</p><p>See you</p><p></p><p>Gaylord<br></p></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-03 11:54 GMT+01:00 Elle Stone <span dir="ltr"><<a href="mailto:ellestone@ninedegreesbelow.com" target="_blank">ellestone@ninedegreesbelow.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 11/02/2014 06:04 PM, GDoirat - GMail wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Everybody<br>
<br>
I use Digikam to manage my photo database for many years.<br>
With my first camera, i took my pictures in JPEG... Digikam was really<br>
great.<br>
I bought a SLR camera and started to took pictures in RAW.<br>
I prefer to developpe my raw files in another software than digikam;<br>
but i still really like photo database managment of DK. But preview of<br>
raws are not updated when i do changes in the raw file (i'm using<br>
darktable).<br>
Is there a way (a software included or not in digikam) to update<br>
embedded raws with exported jpeg from darktable in order that digikam<br>
display a raw preview which includes changes done in darktable?<br>
My search on web make me realised that Lightroom seems to be abble to<br>
do that but i didn't succeed in finding a way to to that on linux.<br>
</blockquote></blockquote>
<br></span>
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.<br>
<br>
But actually it turns out that you *can* overwrite the embedded preview using exiftool. It's a bit round about:<br>
<br>
First develop the raw file.<br>
Then save a copy of the developed raw file as a jpeg.<br>
Then use exiftool to embed the "new preview" jpeg into the raw file, writing right over the top of the orginal embedded jpeg.<br>
<br>
See this page:<br>
<a href="http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,2245.0.html?PHPSESSID=njo90ntbht6qapg9on7i9q4l81" target="_blank">http://u88.n24.queensu.ca/<u></u>exiftool/forum/index.php/<u></u>topic,2245.0.html?PHPSESSID=<u></u>njo90ntbht6qapg9on7i9q4l81</a><br>
<br>
/////// Quoting Phil (exiftool author) from the above link:<br>
If I understand you correctly, you want to write same-named<br>
JPEG images as the PreviewImage for a set of CR2 files.<br>
<br>
exiftool "-previewImage<=JPGDIR/%f.jpg" -ext cr2 CR2DIR<br>
/////// end quote<br>
<br>
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).<br>
<br>
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.<br>
<br>
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.<br>
<br>
I don't know which embedded file digiKam shows (there are several to choose from), but I will guess it's the previewImage.<br>
<br>
Also see reading and writing examples from <a href="http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html" target="_blank">http://www.sno.phy.queensu.ca/<u></u>~phil/exiftool/exiftool_pod.<u></u>html</a><br>
<br>
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.<span class="HOEnZb"><font color="#888888"><br>
<br>
Elle</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Digikam-users mailing list<br>
<a href="mailto:Digikam-users@kde.org" target="_blank">Digikam-users@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-users" target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/digikam-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">________________________________________<br>La vie est plus belle quand on est libre !<br>@@@@@@ LINUX @@@@@@<br><br>Libérez vos oreilles : <a href="http://www.jamendo.fr">www.jamendo.fr</a><br></div>
</div>