Re: [Gimp-developer] Howto: store comments in image from plugin?

2004-07-22 Thread Joseph Heled
Thanks for all the people who answered.
It turned out to be as simple as attaching a gimp-comment and jpeg-exif-data 
parasites to the image.

(of course generating jpeg-exif-data is not trivial. Only implemented for my 
Nikon D70 at the moment. I guess others who like more formats will have to 
implement their own)

-Joseph
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Howto: store comments in image from plugin?

2004-07-22 Thread William Skaggs
Joseph Heled writes:
 It turned out to be as simple as attaching a gimp-comment and 
 jpeg-exif-data parasites to the image. 

Note that in Gimp 2.1 the exif data parasite has been renamed
exif-data, because it is not specific to jpeg files.

Best,
  -- Bill
 

 
__ __ __ __
Sent via the KillerWebMail system at primate.ucdavis.edu


 
   
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Howto: store comments in image from plugin?

2004-07-21 Thread Dave Neary
Hi,
Joseph Heled wrote:
I would like to attach to the image some of the parameters of the 
conversion.
The GIMP uses a mechanism we call parasites to attach data to an image. 
A good example of their use is in the jpg plug-in, for example, where we 
attach exif data, a comment and also save parameters. A complete list of 
standard parasites, and a short description of teh parasite mechanism, 
is in devel-docs in the GIMP sources.

I am not sure ,
  - How do I add this info to the image (I open it with 
gimp_image_new(...) )
  - Which file formats support this kind of comment/data?
png, tiff, jpg all support exif, iptc is supported by tiff and jpeg as 
well, there are lots of other metadata formats which are supported by 
various formats. I'm not quite sure.

On a related issue, how can I add EXIF data to the image? Perhaps I can 
add some
data in the EXIF comment?
We link to libexif already, and use it in the jpeg plug-in. You can 
construct an exif header and write it to a file in the same way as we 
write the exif header back to the file now.

libexif is available here: http://sourceforge.net/projects/libexif
Cheers,
Dave.
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


[Gimp-developer] Howto: store comments in image from plugin?

2004-07-20 Thread Joseph Heled
(I hope this is the appropriate forum ...)
I am developing a plugin which loads raw images from digital cameras (CRW,NEF etc).
I would like to attach to the image some of the parameters of the conversion.
I am not sure ,
  - How do I add this info to the image (I open it with gimp_image_new(...) )
  - Which file formats support this kind of comment/data?
On a related issue, how can I add EXIF data to the image? Perhaps I can add some
data in the EXIF comment?
I would appreciate any help/ideas ...
Joseph
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer