Modifying metadata in an image file ...

U

Useko Netsumi

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
 
M

Michael Neumann

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 :)

Regards,

Michael
 
P

Paul Vudmaska

Useko said:
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
 
U

Useko Netsumi

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

Useko Netsumi

Michael Neumann said:
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 :)

Regards,

Michael

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

Michael Neumann

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

No, sorry :)

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
 
D

Dick Davies

* Michael Neumann said:
No, sorry :)

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.
 
M

Michael Neumann

* Michael Neumann said:
[...]
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).

And there's ruby-libexif :)

http://tam.0xfa.com/ruby-libexif/

Regards,

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top