Raphael Quinet wrote:
> The basic idea is that each file plug-in that supports metadata can
> convert the EXIF data (or other meta-data) to/from GIMP parasites.
> Note that it is important
> that each individual item in the EXIF data is converted to a
> GIMP parasite instead of importing the whole EXIF data in one big
> chunk because some parts of the EXIF data must be modified when the
> image is re-saved (also, some file formats do not support all fields
> so it is easier to work with them if they are saved in separare
> parasites).

I'm not sure I agree with you here... I thought the matter was closed
that we were in agreement last December, but as I understand it there
is no
reason to have more than one parasite for exif data (or if you prefer
a more
generic metadata parasite which encompasses a superset of exif).

My understanding, from what Sven and Mitch told me back then, was that
a part of a parasite could quite easily be modified independant of the
So your concern about bits being modifiable does not imply (as you
different parasites for different bits of data. At least that's how I
it. I'm not sure whether the discussion was on- or off-list (I get
mixed up
sometimes), but that's what I took away from it.

>  > I just don't know how to handle the dependency on libexif(-gtk).
>  > know, libexif itself is quite small and could be included in gimp
>  > (although I'd keep it separately), but libexif-gtk is getting
bigger and
>  > bigger as more widgets are added. Therefore my question: Is it ok
>  > introduce a (conditional --enable-exif) dependency on
libexif(-gtk) for
>  > gimp?
> Well, I don't know what is the best thing to do.  libexif should
> probably be integrated directly into the JPEG plug-in (and maybe
> adapted for the TIFF and PNG plug-ins) but I assume that large parts
> of it would have to be rewritten in order to use GIMP parasites as
> storage format for all data.

I agree here - just replace the bits that parse the jpeg header
with the appropriate bits that parse the exif info and put it in a
format/structure. There's no need to add a dependency on libexif, just
add the code either to the existing jpeg.c, or in another file called
something imaginative like exif.[ch], and link them together when
the jpeg plug-in.

I would keep the gtk stuff (the interface) separate from the jpeg
completely. As Raphael suggests, I would use it possibly as a basis
for a
generic parasite editor, or specifically as an image metadata editor.

> -Raphael


Gimp-developer mailing list

Reply via email to