By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,036 Members | 1,963 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,036 IT Pros & Developers. It's quick & easy.

PIL question: keeping metadata

P: n/a
A question on using the PIL library. If I take a jpg file then, say, resize it and save it
somewhere else, all metadata that is part of the jpg file is lost. This is a pity: digital
cameras routinely add metainformation, so does, for example, Photoshop.

Is there any way of keeping this info in PIL? Alternatively, is there a simple image
processing package that does it?

Ivan
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
> Is there any way of keeping this info in PIL?

I don't think so... when I investigated in the past, I think I
discovered that the PIL can't write EXIF data (I might be wrong,
though, or my information might be outdated).
Alternatively, is there a simple image
processing package that does it?


Try jpegtran:
http://sylvana.net/jpegcrop/jpegtran/

You might also be interested in jhead:
http://www.sentex.net/~mwandel/jhead/
Will.

Jul 19 '05 #2

P: n/a
Ilpo Nyyssönen napisa³(a):
Is there any way of keeping this info in PIL?


I don't think so... when I investigated in the past, I think I
discovered that the PIL can't write EXIF data (I might be wrong,
though, or my information might be outdated).


There is this:

http://mail.python.org/pipermail/ima...er/002931.html


It would be nice to have general EXIF module, the one that is able to
read and write image metadata. Consider such case: you want to rotate
some image from digital camera, but don't want to remove completely the
whole EXIF metadata -- modifying one field would be sufficient.

--
Jarek Zgoda
http://jpa.berlios.de/
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.