Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

When is GIMP going to fully support EXIF tags?

27 views
Skip to first unread message

Noons

unread,
Sep 1, 2010, 12:31:15 AM9/1/10
to
It used to copy all EXIF tags in TIF files, IIRC in release 2.2. SInce
then, it simply ignores any EXIF in a tif file.

The "official" explanation seems to be that "tif doesn't support
EXIF".

I guess that means Capture NX2, Irfanview, exiftool, Photoshop and
just about any other graphics editor program is wrong in allowing EXIF
info in tif files, while GIMP is right in dropping it...

'Nuff is enough, folks: please put exif support back in GIMP, it's
useless for photography without it.

And before I get the usual crap:
NO, jpg is NOT the prefered format for editing photo images! Tif is
the preferred file format!
jpg is used for FINAL output, not for master editing!

Floyd L. Davidson

unread,
Sep 1, 2010, 7:05:03 AM9/1/10
to
Noons <wizo...@gmail.com> wrote:
>It used to copy all EXIF tags in TIF files, IIRC in release 2.2. SInce
>then, it simply ignores any EXIF in a tif file.
>
>The "official" explanation seems to be that "tif doesn't support
>EXIF".

That appears to be true, and your problem may actually
be more with the libtiff library than with GIMP, though
not totally. For example ImageMagick does copy some of
the Maker Notes but not the Exif data, if the input
file is a TIFF format even it it has the Exif data
embedded.

I haven't looked deep enough to see what the nitty
gritty is, and instead wrote a shell script that uses
/exiftool/ to copy data from one file to another after
it makes a few specific changes such as adding a
copyright notice if none exists. It retains whatever is
in the target (hence things like dates and sizes remain
correct) and adds on whatever else exists in the
specified file to copy from.

>I guess that means Capture NX2, Irfanview, exiftool, Photoshop and
>just about any other graphics editor program is wrong in allowing EXIF
>info in tif files, while GIMP is right in dropping it...

Oh stop being silly.

>'Nuff is enough, folks: please put exif support back in GIMP, it's
>useless for photography without it.

Even sillier...

If you'd like to see it I can clean up the script
mentioned above and post it. I've been using it for
quite some time and find it very useful. I'd just have
to rewrite parts of it to make it generic, otherwise
it'd put my name into files... :-)

>And before I get the usual crap:
>NO, jpg is NOT the prefered format for editing photo images! Tif is
>the preferred file format!
>jpg is used for FINAL output, not for master editing!

What's that got to do with anything?

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) fl...@apaflo.com

Michael Schumacher

unread,
Sep 1, 2010, 9:00:36 AM9/1/10
to
On Sep 1, 6:31 am, Noons <wizofo...@gmail.com> wrote:
> It used to copy all EXIF tags in TIF files, IIRC in release 2.2. SInce
> then, it simply ignores any EXIF in a tif file.
>
> The "official" explanation seems to be that "tif doesn't support
> EXIF".

The TIFF plug-ins of GIMP don't support it yet.
The JPEG plug-in is the only one that reads Exif, but doesn't handle
IPTC, for example.

> 'Nuff is enough, folks: please put exif support back in GIMP, it's
> useless for photography without it.

Exif support is there, mostly unchanged for years and this still
limited to JPEG/JFIF files.

For a list of both bugs and feature wishes, use the following search:

https://bugzilla.gnome.org/buglist.cgi?quicksearch=gimp+exif

If you like to fix any of them, you should check out the metadata
plug-in and get in contact with the most recent contributor working on
if (if I remember correctly, this was Roman Joost).


Regards,
Michael

Andy Helliwell

unread,
Sep 1, 2010, 9:46:31 AM9/1/10
to

"Noons" <wizo...@gmail.com> schreef in bericht
news:7ad791a7-3bef-44db...@u4g2000prn.googlegroups.com...

> It used to copy all EXIF tags in TIF files, IIRC in release 2.2. SInce
> then, it simply ignores any EXIF in a tif file.
>

> 'Nuff is enough, folks: please put exif support back in GIMP, it's


> useless for photography without it.
>

END>

Why is Gimp useless for photography without exif support ?

I used Gimp for a decade to edit my photo's, it works brilliantly,
I always just edit them in .jpg format, or I make a layered .xcf
version, then I edit it and clean it up, copy it and save it again
as a jpeg. Saving a layered .xcf version as well of course..
.
I was a photographer in a small concert hall, I photographed
hundreds of bands, I used Gimp to edit and enhance all my
photo's, it is a Great program.

Andy


Noons

unread,
Sep 1, 2010, 9:58:09 PM9/1/10
to
On Sep 1, 11:00 pm, Michael Schumacher <schum...@gmx.de> wrote:

> > The "official" explanation seems to be that "tif doesn't support
> > EXIF".
>
> The TIFF plug-ins of GIMP don't support it yet.

The problem is not really with GIMP supporting EXIF or not. I didn't
express myself correctly.
I don't need GIMP to support EXIF, I've got exiftoool for that.
The problem is that when saving a tif file, GIMP drops any pre-
existing EXIF info!

TIF is a tagged file format, with a "meta-directory" that identifies
other content. As such for example, most RAW dslr files are actually
a slight variation of the TIF format.

All the GIMP TIFF plug-ins have to do is very simple:
"do not know what the meta tag and content are? Leave it alone!
Do NOT get rid of it just because you don't grok it".

Simple, really.

2.2 used to do just that: input TIFF file had EXIF tags and content?
They'd be on the saved .tif file, untouched. No problem.

That's all that's needed. As is, it's a RPITA to handle TIF photo
files in GIMP.

And I repeat: NO, jpg is NOT an alternative for serious photo master
files. So please: do not even mention jpg.

Fr@nk Stef@ni

unread,
Sep 2, 2010, 4:29:21 AM9/2/10
to
Hello Noons,

Am 01.09.2010 06:31, schrieb Noons:
> It used to copy all EXIF tags in TIF files, IIRC in release 2.2. SInce
> then, it simply ignores any EXIF in a tif file.
>
> The "official" explanation seems to be that "tif doesn't support
> EXIF".

this is true and annoying. For the time beeing,
I made a simple shell script based on exiftool
as a workaround. The important code line reads:

exiftool -overwrite_original -tagsFromFile $originalFile $file

where $originalFile is a 16-bit TIFF produced by my RAW converter.
Whenever I need to postprocess a file with Gimp, I save the
resulting image file with an added "-r" (for "retouched"). Then,
after closing Gimp, I call my script with all "*-r.tif" files
at once and the relevant EXIF tags are reimplemented into the
retouched files.

Workflow example:

gimp myFile.tif
do something in Gimp
finally save the retouched file as myFile-r.tif
quit Gimp
fs-tag-gimp-output-with-creator-tags *-r.tif

My script (fs-tag-gimp-output-with-creator-tags) then searches
for original files (like "myFile.tif") and copies its EXIF tags
into the retouched version "myFile-r.tif").

Works great vor me after getting used to my convention to save
all Gimp retouched files as "myFile-r.*"

FYI, here is my script "fs-tag-gimp-output-with-creator-tags":

<code>
#!/bin/bash

# Für's erste dürfen nur Dateinamen als Parameter übergeben werden,
# die zu der Dateinamensmaske "*-r.???" passen, also z.B. "bild-r.tif"
# Dabei ist "-r.???" der interne Hinweis, dass das Originalbild
# "bild.tif" mit Gimp bearbeitet und als "bild-r.tif" gespeichert
# wurde.

#set -x

for f in $*; do
echo -n "Suche Tags für $f ... "
fileSuffix=$(echo "$f" | rev | cut -d. -f 1 | rev)
filenameWithoutR=$(echo "$f" | rev | cut -d- -f 2- | rev)
originalFile=${filenameWithoutR}.${fileSuffix}
echo -n "Originaldatei: $originalFile ... "
if [ -s "$originalFile" ]; then
# TAGS der Originaldatei kopieren
exiftool -overwrite_original -tagsFromFile $originalFile $f 2>>exiftool.log 1>/dev/null
if [ $? -eq 0 ]; then
echo "o.k."
else
echo "Fehler ($?): Bearbeitung abgebrochen"
continue
fi
else
echo "nicht gefunden - Datei ignoriert"
fi
done
</code>

Save it as an executable and try it with a Gimp processed version
which you rename to "myFile-r.tif" (a simple save with Gimp is sufficient).

It works perfect for me but as usual, use at your own risk and YMMV.

Regards,
Frank

Michael Schumacher

unread,
Sep 2, 2010, 5:27:46 AM9/2/10
to
On Sep 2, 3:58 am, Noons <wizofo...@gmail.com> wrote:

> 2.2 used to do just that: input TIFF file had EXIF tags and content?
> They'd be on the saved .tif file, untouched.  No problem.

https://bugzilla.gnome.org/show_bug.cgi?id=56443 - which is asking for
Exif support in TIFF files - dates back to GIMP 1.3.x

To my knowledge, there has never been any code in the TIFF plug-in to
load the Exif data, attach it as a parasite and use the data from said
parasite when saving.

But that can be checked easily by reading the source code of the 2.2
TIFF plug-in:
http://git.gnome.org/browse/gimp/tree/plug-ins/common/tiff.c?h=gimp-2-2

I can't find any Exif handling in there, but all I've done so far is
searching for "exif" there and checking if any of the other parasites
could contain that data.

If you've got a GIMP 2.2 that loads and saves Exif from and to TIFF
files, you may have a modified TIFF plug-in.

HTH,
Michael

Michael Schumacher

unread,
Sep 2, 2010, 5:35:31 AM9/2/10
to
On Sep 2, 10:29 am, "Fr@nk Stef@ni" <f...@despammed.com> wrote:
> Hello Noons,
>
> Am 01.09.2010 06:31, schrieb Noons:
>
> > It used to copy all EXIF tags in TIF files, IIRC in release 2.2. SInce
> > then, it simply ignores any EXIF in a tif file.
>
> > The "official" explanation seems to be that "tif doesn't support
> > EXIF".
>
> this is true and annoying.

Out of curiosity, where is this explained like that?


Regards,
Michael

Laurianne Gardeux

unread,
Sep 2, 2010, 5:49:54 PM9/2/10
to
Fr@nk Stef@ni a écrit :

Hi Frank

> #!/bin/bash
>
> # Für's erste dürfen nur Dateinamen als Parameter übergeben werden, #
> die zu der Dateinamensmaske "*-r.???" passen, also z.B. "bild-r.tif"

Let 'grep' do this job for you! Filter out all the "*-r.???" - files (see
below).

> fileSuffix=$(echo "$f" | rev | cut -d. -f 1 | rev)
> filenameWithoutR=$(echo "$f" | rev | cut -d- -f 2- | rev)
> originalFile=${filenameWithoutR}.${fileSuffix}

This can be down with string operators inside the shell (bash).

Here is a simplified version of your script:

#!/bin/bash

marker='-r\....$'

for f in * ; do
echo "$f" | grep -q -- "$marker"


if [ $? -eq 0 ]; then

originalFile="${f/-r.*}"."${f/*.}"


exiftool -overwrite_original -tagsFromFile "$originalFile" "$f"

fi
done


Regards, LG


Noons

unread,
Sep 3, 2010, 6:21:52 AM9/3/10
to
Fr@nk Stef@ni wrote,on my timestamp of 2/09/2010 6:29 PM:
>
> exiftool -overwrite_original -tagsFromFile $originalFile $file

Thanks. I do something very similar with exiftool.
Another I use a lot is:
exiftool -@ Film.txt <*>.tif - apply contents of Film.txt tags to file(s)
It's useful for example to set the camera and film info for a scanned roll of
film to all files in one command.

Noons

unread,
Sep 3, 2010, 6:23:53 AM9/3/10
to
Michael Schumacher wrote,on my timestamp of 2/09/2010 7:35 PM:

>>> The "official" explanation seems to be that "tif doesn't support
>>> EXIF".
>>
>> this is true and annoying.
>
> Out of curiosity, where is this explained like that?

In the "official" GIMP developer forums. Various messages dating all the way
back to 2001 and even before. They might mean "tif library in GIMP doesn't
support exif", but it doesn't come across that way...

Fr@nk Stef@ni

unread,
Sep 3, 2010, 1:33:20 PM9/3/10
to
Hi Laurianne,

> Here is a simplified version of your script:
>
> #!/bin/bash
>
> marker='-r\....$'

marker='-r\.tif$'

would be much more efficient as I never need or want to
process *.[xcf|jpg|{RAW}] file formats.

> for f in * ; do

^
dislike: no need to check/process everything in place,
ie. directories or other file types than "*.tif". I also
rather use "$*" to respect given file arguments (eg. "*.tif")
and I definitely don't wont to process (and thus overwrite)
all files in place which may already be processed earlier.

> echo "$f" | grep -q -- "$marker"
> if [ $? -eq 0 ]; then
> originalFile="${f/-r.*}"."${f/*.}"

^^^^^^^^^^^^^^^^^^^^^
like :-)


> exiftool -overwrite_original -tagsFromFile "$originalFile" "$f"
> fi
> done

Thanks and have a nice weekend,
Frank

Ofnuts

unread,
Sep 3, 2010, 3:16:33 PM9/3/10
to
On 03/09/2010 19:33, Fr@nk Stef@ni wrote:
> Hi Laurianne,
>
>> Here is a simplified version of your script:
>>
>> #!/bin/bash
>>
>> marker='-r\....$'
>
> marker='-r\.tif$'
>
> would be much more efficient as I never need or want to
> process *.[xcf|jpg|{RAW}] file formats.

Then you can use the suffix-removal form of 'basename'

--
Bertrand

Michael Schumacher

unread,
Sep 3, 2010, 5:17:55 PM9/3/10
to
Noons <wizo...@yahoo.com.au> writes:

In the gimp-developer list archives for 2001, there's
http://www.mail-archive.com/gimp-de...@lists.xcf.berkeley.edu/msg01528.html

Are you refering to that message or one of its follow-ups?


Michael

--
GIMP > http://www.gimp.org | IRC: irc://irc.gimp.org/gimp
Wiki > http://wiki.gimp.org | .de: http://gimpforum.de
Plug-ins > http://registry.gimp.org |

0 new messages