[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 134486] Keywords are not written to raw files even though they
From:       Piotr Tarnowski <piotr_tarnowski () wp ! pl>
Date:       2007-11-02 22:41:22
Message-ID: 20071102224122.31345.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=134486         




------- Additional Comments From piotr_tarnowski wp pl  2007-11-02 23:41 -------
Created an attachment (id=21986)
 --> (http://bugs.kde.org/attachment.cgi?id=21986&action=view)
Temporary solution for storing iptc and exif in alternate file

provied patch (for 0.9.2-final) uses alternate jpg files to store iptc and exif
data when storing in original file is not supported. I wrote it because I need
to preserve this information for TIFF files but it can also be useful in
another case: like readonly filesystem, readonly image or even metadata
(keywords, comments rating) shared by more than one image. The location of
alternate image is defined in file named ".digikam.alt.txt" (or
"digikam.alt.txt") which is searched in album's directory and all directories
above: Here is sample content of this file:
-----------------
# comment
map .*[.]jpg 
map (.*)/([^/]+) .$1/$2.alt.jpg
break
next 
-----------------

# - comment line
map fromRegExp to - defines transformation of original path to path of
alternate file
map skipRegExp - matched files do not have alternate files
next - do to dir up ignoring rest of this file
break - stop searching

The rule is that first match wins.
When writing if alternate file is present it is used, if not present first
attempt is made to write to original file and if this fails to alternate

When reading if alternate file is present it is used otherwise original file is
read.

I know it should be implemented in kexiv2 and I'm going to do so (so that kipi
plugins can use this).
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic