473,394 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

PIL question: keeping metadata

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
2 2244
> 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brett Selleck | last post by:
I would like to start collecting Metadata on my XML schemas. I have searched the web for a method of automatically extracting Metadata from an XSD file and have come up empty handed. Basically what...
4
by: Doug Estep | last post by:
Below is a sample of my XML… <MetaData> <Table name="mytable"> <PrimaryKey name="pk"><Column name="mycolumn"/></PrimaryKey> </Table> </MetaData> <Sequencer> <Table name="mytable">
1
by: Santhu | last post by:
What is the difference between METADATA and MANIFEST and where do they get stored? Thank you
5
by: Ben R. | last post by:
I'm new to custom attributes. Here's the attribute I made: Public Class DeveloperNoteAttribute Inherits System.Attribute Sub New(s as String) End Sub End Class
5
by: dennis | last post by:
Hi, First of all, hi to you all. I'm working on a Delphi project wich is becoming near it's deadline. I have a very simple XSLT question wich i hope one of you folks can help me with? The...
2
by: Tommy Wang | last post by:
During an interview, I was asked with question 'how do you add information to a .NET assembly as metadata' I really have no idea until now, could someone please help? thanks in advance
2
by: EP | last post by:
I'm looking for a method by which to access Windows files metadata and have not been able to find anything in the standard modules or via Google - what is the standard approach? Shamefully I...
19
by: pinkfloydhomer | last post by:
Please read the example below. I'm sorry I couldn't make it smaller, but it is pretty simple. When client code is calling newThingy(), it is similar to malloc: the client gets a pointer to a...
19
by: vamsee.maha | last post by:
How is the metadata for an assembly stored? (A) In .ini files (B) As XML in the manifest (C) As a Type Library (.tlb) file (D) In the Registry
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.