Modifying metadata in an image file

Does anyone aware of any program/apps/scripts that has the ability to
modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG,
etc.

Question for the experts, is it wise to store information in the image file
instead of the database? Thanks

For PNG this would be quite simple as it supports text chunks with
keywords. Coincidentally I wrote a simple PNG writer in pure Ruby a few
days ago :slight_smile:

Regards,

  Michael

···

On Wed, Apr 28, 2004 at 03:14:04AM +0900, Useko Netsumi wrote:

Does anyone aware of any program/apps/scripts that has the ability to
modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG,
etc.

Useko Netsumi wrote:

Does anyone aware of any program/apps/scripts that has the ability to
modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG,
etc.

Not exactly sure what you mean by metadata but there are a few things in
raa for manipulating images.

http://raa.ruby-lang.org/search.rhtml?search=image

Question for the experts, is it wise to store information in the image file
instead of the database? Thanks

I’m not an expert - but i’ve done that a lot. Bury the file in the file
system and link to it is what I always do and it works good for my uses.

:paul

Does anyone aware of any program/apps/scripts that has the ability to
modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG,
etc.

I believe that RMagic supports this, it does allow you to extract
metadata.

Question for the experts, is it wise to store information in the image file
instead of the database? Thanks

Almost every digital camera now stores such exposure time, flash used,
date and time taken, etc. in the image itself as metadata.

···

Useko Netsumi (usenets_remote_this@earthlink.net) wrote:


Eric Hodel - drbrain@segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04

When you take a picture using digital camera, the file, e.g. JPEG, store
some info such as date, size, resolution, etc.

“Paul Vudmaska” paul@vudmaska.com wrote in message
news:408EA65C.6000100@vudmaska.com

Useko Netsumi wrote:

Does anyone aware of any program/apps/scripts that has the ability to
modify/add/create/delete metadata in any image type such as JPEG, GIF,
PNG,
etc.

Not exactly sure what you mean by metadata but there are a few things in
raa for manipulating images.

http://raa.ruby-lang.org/search.rhtml?search=image

Question for the experts, is it wise to store information in the image
file

···

instead of the database? Thanks

I’m not an expert - but i’ve done that a lot. Bury the file in the file
system and link to it is what I always do and it works good for my uses.

:paul

“Michael Neumann” mneumann@ntecs.de wrote in message
news:20040427182717.GA1345@miya.intranet.ntecs.de

Does anyone aware of any program/apps/scripts that has the ability to
modify/add/create/delete metadata in any image type such as JPEG, GIF,
PNG,
etc.

For PNG this would be quite simple as it supports text chunks with
keywords. Coincidentally I wrote a simple PNG writer in pure Ruby a few
days ago :slight_smile:

Regards,

Michael

That’s great! Would you extend your script to include other format such as
JPEG, GIF, etc? Thanks

···

On Wed, Apr 28, 2004 at 03:14:04AM +0900, Useko Netsumi wrote:

No, sorry :slight_smile:

But it shouldn't be that hard to write a method whose only purpose is to
modify the text information. But I am not familiar with the JPEG and GIF
data format and don't have the time to investigate.

Maybe you just search for an already existing solution or write it
yourself.

Regards,

  Michael

···

On Wed, Apr 28, 2004 at 04:39:04AM +0900, Useko Netsumi wrote:

"Michael Neumann" <mneumann@ntecs.de> wrote in message
news:20040427182717.GA1345@miya.intranet.ntecs.de...
> On Wed, Apr 28, 2004 at 03:14:04AM +0900, Useko Netsumi wrote:
> > Does anyone aware of any program/apps/scripts that has the ability to
> > modify/add/create/delete metadata in any image type such as JPEG, GIF,
PNG,
> > etc.
>
> For PNG this would be quite simple as it supports text chunks with
> keywords. Coincidentally I wrote a simple PNG writer in pure Ruby a few
> days ago :slight_smile:
>
> Regards,
>
> Michael
>
>

That's great! Would you extend your script to include other format such as
JPEG, GIF, etc? Thanks

···

On Wed, Apr 28, 2004 at 04:39:04AM +0900, Useko Netsumi wrote:

“Michael Neumann” mneumann@ntecs.de wrote in message
news:20040427182717.GA1345@miya.intranet.ntecs.de

On Wed, Apr 28, 2004 at 03:14:04AM +0900, Useko Netsumi wrote:

Does anyone aware of any program/apps/scripts that has the ability to
modify/add/create/delete metadata in any image type such as JPEG, GIF,
PNG,
etc.

For PNG this would be quite simple as it supports text chunks with
keywords. Coincidentally I wrote a simple PNG writer in pure Ruby a few
days ago :slight_smile:

Regards,

Michael

That’s great! Would you extend your script to include other format such as
JPEG, GIF, etc? Thanks

No, sorry :slight_smile:

But it shouldn’t be that hard to write a method whose only purpose is to
modify the text information. But I am not familiar with the JPEG and GIF
data format and don’t have the time to investigate.

Does the OP mean EXIF data - I think that’s what the JPEG metadata is
held as?

There’s a libexif C library- maybe try hooking ruby/dl up to it?
(I discovered ruby-dl last week and am bowled over at how useful it is
to folks like me who are allergic to raw C code).

Atchoo.

It is easier for a camel to pass through the eye of a needle if it is
lightly greased.
– Kehlog Albran, “The Profit”
Rasputin :: Jack of All Trades - Master of Nuns

And there’s ruby-libexif :slight_smile:

Regards,

Michael

···

On Wed, Apr 28, 2004 at 07:11:34PM +0900, Dick Davies wrote:

[…]
But it shouldn’t be that hard to write a method whose only purpose is to
modify the text information. But I am not familiar with the JPEG and GIF
data format and don’t have the time to investigate.

Does the OP mean EXIF data - I think that’s what the JPEG metadata is
held as?

There’s a libexif C library- maybe try hooking ruby/dl up to it?
(I discovered ruby-dl last week and am bowled over at how useful it is
to folks like me who are allergic to raw C code).