LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-24-2012, 06:45 PM   #1
lilleskut
LQ Newbie
 
Registered: Feb 2012
Posts: 18

Rep: Reputation: Disabled
Exif grep


Is there a grep command for exif data in image files, particular for the exif location?

I could use imagemagick's identify command and pipe it through grep, but that would take forever if I ran it on thousands of files. So ideally I'd like something that runs reasonably fast.

Any suggestions?
 
Old 06-24-2012, 06:57 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
There is no grep specifically for exif data---you just have to have the right stuff in the regex search field.

With any tool like grep (tools that work on printable character sets), I don't know what happens when they hit binary data.

finally, why would you assume that any tool would be faster than ImageMagick--some may be, but surely others are slower.
 
Old 06-24-2012, 07:46 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,103

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
Perl maybe ?. exiftool.
 
Old 06-25-2012, 01:48 AM   #4
lilleskut
LQ Newbie
 
Registered: Feb 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pixellany View Post
why would you assume that any tool would be faster than ImageMagick--some may be, but surely others are slower.
I only tried "identify" which extracts all kind of information but takes about a second on my computer for a single file which is certainly too much if I want to use it on many files. Perhaps there is some way to extract only part of the exif data (I am only interested in a small part of it anyway) and do it quicker.

exiftool seems to be quicker. Perhaps exifprobe could be helpful as well.

Last edited by lilleskut; 06-25-2012 at 01:59 AM.
 
Old 06-25-2012, 02:49 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Did you have a look at exiv2?

I'm not sure about other distro's, but it is part of Debian.
 
Old 06-26-2012, 09:45 AM   #6
lilleskut
LQ Newbie
 
Registered: Feb 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
debian is perfectly fine. Will have a look. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
search recursively by exif date? rioguia Programming 6 02-21-2010 05:49 AM
Adding EXIF DateTimeOriginal data to a photo marciano Linux - Software 3 11-22-2008 09:46 AM
Extract audio from exif jpeg file? gbowden Slackware 9 07-13-2007 08:08 AM
Change Exif data in linux? shwouchk Linux - Software 2 12-02-2006 06:31 AM
Exif info edito for digital photo. chii-chan Linux - Software 0 07-27-2004 04:32 AM


All times are GMT -5. The time now is 01:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration