tags, rating and comments in TIFF files

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

tags, rating and comments in TIFF files

piotr_tarnowski
Hi all,

I found no support for storing digiKam tags, rating and comments in TIFF
files.
Am I right?

If it is so I'm going to implement this storage using tag 270 (comment).
Content of this tag is presented by digiKam, so it is easy to use it for
image to database replication. One can easily change content of this tag
with command line tool:

tiffset -s 270 "Comment" a.tif

or:

tiffset -sf 270 file-name-with-comment.txt a.tif

I'm going to use following syntax:
comment must start with "digiKam:\n"
then goes rating like this: "rating:5\n"
then every tag takes one line "tag:path/to/tag\n"
finally goes digiKam comment "comment:first line\nnext line..."

I do not know how to implement writing to TIFF - I will try to hack
'tiffset' sources to learn and if I will fail I will call this command
from digiKam.

Any comments and suggestions are welcome, from which the best would be -
do not do this it is already in digiKam but you haven't found this :)

/Piotr

PS. Sample comment contents:
DigiKam:
Rating:3
Tag:Who/John
Tag:Who/Marry
Tag:Where/Spain
Tag:How/Tripod
Comment:
My favorite
photo from vacations.

----------------------------------------------------
ZŁOTE KACZKI MAGAZYNU FILM - GALA 50-lecia. Na Wasze głosy
czekamy do 28/10. Transmisja finałowej Gali 31 października
o godz. 19.00 w TVP 2. Zobacz koniecznie!
http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fzlotekaczki.html&sid=64


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: tags, rating and comments in TIFF files

Arnd Baecker
Hi Piotr,

digikam uses exiv2 to access and write meta-data.
Support for tiff is being worked on (see http://www.exiv2.org/),
but I don't know the current status.
So to me it seems that for a proper solution to
the problem you discuss, it should be done on the level of exiv2.

Gilles, and Andreas will be able to give a more detailed account on this,
but I would suggest to get Andreas Huggel's from exiv2 opinion first,
before you start hacking ;-)
I am sure that contributions are very welcome!

Best, Arnd

On Mon, 22 Oct 2007, Piotr Tarnowski wrote:

> Hi all,
>
> I found no support for storing digiKam tags, rating and comments in TIFF
> files.
> Am I right?
>
> If it is so I'm going to implement this storage using tag 270 (comment).
> Content of this tag is presented by digiKam, so it is easy to use it for
> image to database replication. One can easily change content of this tag
> with command line tool:
>
> tiffset -s 270 "Comment" a.tif
>
> or:
>
> tiffset -sf 270 file-name-with-comment.txt a.tif
>
> I'm going to use following syntax:
> comment must start with "digiKam:\n"
> then goes rating like this: "rating:5\n"
> then every tag takes one line "tag:path/to/tag\n"
> finally goes digiKam comment "comment:first line\nnext line..."
>
> I do not know how to implement writing to TIFF - I will try to hack
> 'tiffset' sources to learn and if I will fail I will call this command
> from digiKam.
>
> Any comments and suggestions are welcome, from which the best would be -
> do not do this it is already in digiKam but you haven't found this :)
>
> /Piotr
>
> PS. Sample comment contents:
> DigiKam:
> Rating:3
> Tag:Who/John
> Tag:Who/Marry
> Tag:Where/Spain
> Tag:How/Tripod
> Comment:
> My favorite
> photo from vacations.
>
> ----------------------------------------------------
> ZŁOTE KACZKI MAGAZYNU FILM - GALA 50-lecia. Na Wasze głosy
> czekamy do 28/10. Transmisja finałowej Gali 31 października
> o godz. 19.00 w TVP 2. Zobacz koniecznie!
> http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fzlotekaczki.html&sid=64
>
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: tags, rating and comments in TIFF files

Gilles Caulier-4


2007/10/22, Arnd Baecker <[hidden email]>:

Piotr, Using libtiff to write metadata is not the right way . Libtiff require to rewrite the full image, not to set only tags in metadata section of file.

Note : Coments, rating, etc are already writed in TIFF file when you save image from Editor... But of course this is not yet done in fly like with JPEG from Album view.
 

digikam uses exiv2 to access and write meta-data.
Support for tiff is being worked on (see http://www.exiv2.org/),
but I don't know the current status.

TIFF writing IO with Exiv2 will be the next job to do . Currently, XMP is the main task for next Exiv2 release 0.16 planed to December. TIFF writing mode is temporaly stopped.

Few developement have been already done but not yet finalized...
 

So to me it seems that for a proper solution to
the problem you discuss, it should be done on the level of exiv2.

Gilles, and Andreas will be able to give a more detailed account on this,
but I would suggest to get Andreas Huggel's from exiv2 opinion first,
before you start hacking ;-)

Andreas is not in this room, only in digikam-devel ML. You can contact him directly at "ahuggel at gmx dot net" or using Exiv2 ML
 

I am sure that contributions are very welcome!

yes TIFF writting mode is very important for the future
 
Gilles

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: tags, rating and comments in TIFF files

piotr_tarnowski
Thanks to all of you for quick response,

I will join digikam-devel and present the subject there.
The problem is that I have to find a solution quickly and I can only
spend a few nights solving it. My main goal is to register all my photos
in digikam (which cames from scanner and are TIFFs), so probably I will
not be able to wait for exiv2 lib to cover TIFF. I prefer to have slow
but working solution than nothing, but of course I would be very happy
if my effort could be useful for community as well.

/Piotr

Dnia 22-10-2007 o godz. 9:48 Gilles Caulier napisał(a):
>
>
> 2007/10/22, Arnd Baecker <[hidden email]>:
>
> Piotr, Using libtiff to write metadata is not the right way . Libtiff
require to rewrite the full image, not to set only tags in metadata
section of file.
>
>
> Note : Coments, rating, etc are already writed in TIFF file when you
save image from Editor... But of course this is not yet done in fly like
with JPEG from Album view.
>
> >
> > digikam uses exiv2 to access and write meta-data.
> > Support for tiff is being worked on (see http://www.exiv2.org/),
> > but I don't know the current status.
> TIFF writing IO with Exiv2 will be the next job to do . Currently, XMP
is the main task for next Exiv2 release

> 0.16 planed to December. TIFF writing mode is temporaly stopped.
>
> Few developement have been already done but not yet finalized...
>
> >
> > So to me it seems that for a proper solution to
> > the problem you discuss, it should be done on the level of exiv2.
> >
> > Gilles, and Andreas will be able to give a more detailed account on this,
> > but I would suggest to get Andreas Huggel's from exiv2 opinion first,
> > before you start hacking ;-)
> Andreas is not in this room, only in digikam-devel ML. You can contact
him directly at "ahuggel at gmx dot net" or using Exiv2 ML
>
>
> > I am sure that contributions are very welcome!
> yes TIFF writting mode is very important for the future
>
>  Gilles
>

----------------------------------------------------
ZŁOTE KACZKI MAGAZYNU FILM - GALA 50-lecia. Na Wasze głosy
czekamy do 28/10. Transmisja finałowej Gali 31 października
o godz. 19.00 w TVP 2. Zobacz koniecznie!
http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fzlotekaczki.html&sid=64


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: tags, rating and comments in TIFF files

piotr_tarnowski
In reply to this post by Gilles Caulier-4
Finally,

I've made a patch to digiKam (and added it to
http://bugs.kde.org/show_bug.cgi?id=134486) which stores in JPG files
iptc and exif data when storing in original file is not supported (TIFF,
RAW, read-only).
Personally use it for TIFF files.
When you move or rename original file you must remember to rename
alternate to.

/Piotr

Dnia 22-10-2007 o godz. 9:48 Gilles Caulier napisał(a):
>
>
> 2007/10/22, Arnd Baecker <[hidden email]>:
>
> Piotr, Using libtiff to write metadata is not the right way . Libtiff
require to rewrite the full image, not to set only tags in metadata
section of file.
>
>
> Note : Coments, rating, etc are already writed in TIFF file when you
save image from Editor... But of course this is not yet done in fly like
with JPEG from Album view.
>
> >
> > digikam uses exiv2 to access and write meta-data.
> > Support for tiff is being worked on (see http://www.exiv2.org/),
> > but I don't know the current status.
> TIFF writing IO with Exiv2 will be the next job to do . Currently, XMP
is the main task for next Exiv2 release

> 0.16 planed to December. TIFF writing mode is temporaly stopped.
>
> Few developement have been already done but not yet finalized...
>
> >
> > So to me it seems that for a proper solution to
> > the problem you discuss, it should be done on the level of exiv2.
> >
> > Gilles, and Andreas will be able to give a more detailed account on this,
> > but I would suggest to get Andreas Huggel's from exiv2 opinion first,
> > before you start hacking ;-)
> Andreas is not in this room, only in digikam-devel ML. You can contact
him directly at "ahuggel at gmx dot net" or using Exiv2 ML
>
>
> > I am sure that contributions are very welcome!
> yes TIFF writting mode is very important for the future
>
>  Gilles
>

----------------------------------------------------
"Ragtime" rewelacyjny musical w 2 aktach
Premiera w Gliwickim Teatrze Muzycznym
już 23 listopada. Musisz to zobaczyć!
Kliknij: http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2FRagtime-musical.html&sid=83


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users