reading jpeg metadata from commandline

Any questions about the Command Line Interface can be placed here!
Forum rules
Please note the disclaimer before modifying your Synology Product.

reading jpeg metadata from commandline

Postby congo » Tue Oct 07, 2008 6:14 pm

hi everyone,

does either of you know a way in which i can read a jpeg or gif or maybe even movie files metadata from synology commandline? -i saw exiftool for linux, yet ipkg doesnt know this one for synology ppc....

hope someone can help



regards
Thomas
User avatar
congo
Sharp
Sharp
 
Posts: 173
Joined: Wed Aug 15, 2007 4:22 pm
Location: Copenhagen, Denmark

Re: reading jpeg metadata from commandline

Postby bzhou » Tue Oct 07, 2008 11:24 pm

You can try imagemagick ipk
bzhou
Knowledgeable
Knowledgeable
 
Posts: 344
Joined: Sat Jan 12, 2008 1:57 am

Re: reading jpeg metadata from commandline

Postby congo » Wed Oct 08, 2008 8:58 pm

hi there,

thanks for your reply,

so i grapped imagemagic - compiled ok. Yet howto use this is less obvious. I found a binary called "display", yet that doesnt react to any of my inputs...

BR,
congo
User avatar
congo
Sharp
Sharp
 
Posts: 173
Joined: Wed Aug 15, 2007 4:22 pm
Location: Copenhagen, Denmark

Re: reading jpeg metadata from commandline

Postby bzhou » Fri Oct 10, 2008 4:33 pm

Code: Select all
/opt/bin/ipkg files | grep ^/opt/bin/ | sort -u
/opt/bin/identify file-name.jpg
/opt/bin/man identify # if you have "man" installed
bzhou
Knowledgeable
Knowledgeable
 
Posts: 344
Joined: Sat Jan 12, 2008 1:57 am

Re: reading jpeg metadata from commandline

Postby congo » Fri Oct 10, 2008 10:00 pm

excellent - i can use the identify binary, yet it reveals no information of when the picture was created initially. It does reveal the following:
Code: Select all
hardware001.jpg JPEG 2592x1944 2592x1944+0+0 8-bit DirectClass 828kb 4.070u 0:09

-for pictures taken with a digicam its often known as "picture taken datetime".

regards
congo
User avatar
congo
Sharp
Sharp
 
Posts: 173
Joined: Wed Aug 15, 2007 4:22 pm
Location: Copenhagen, Denmark

Re: reading jpeg metadata from commandline

Postby bzhou » Sat Oct 11, 2008 4:26 pm

identify -verbose picture.jpg
bzhou
Knowledgeable
Knowledgeable
 
Posts: 344
Joined: Sat Jan 12, 2008 1:57 am

Re: reading jpeg metadata from commandline

Postby congo » Tue Oct 14, 2008 9:13 pm

bzhou wrote:identify -verbose picture.jpg


Thanks - this is awesome!, i get a great list of data for each picture. Though i estimated my nearly 8 gigs of jpegs would take somewhat a week to walk over by a script i would do, as the verbose-option is quite slow (on DS-106e)...

Would you happen to know if i can call identify with a param that will return only the created-datetime tag?


mahlo,


regards
congo
User avatar
congo
Sharp
Sharp
 
Posts: 173
Joined: Wed Aug 15, 2007 4:22 pm
Location: Copenhagen, Denmark

Re: reading jpeg metadata from commandline

Postby bzhou » Thu Oct 16, 2008 5:26 am

Yeah, the verbose mode is pretty slow.

Ideally one would port some libexif client to optware, I just don't have the time right now.
bzhou
Knowledgeable
Knowledgeable
 
Posts: 344
Joined: Sat Jan 12, 2008 1:57 am


Return to Command Line Interface

Who is online

Users browsing this forum: No registered users and 2 guests