LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Exif grep (https://www.linuxquestions.org/questions/linux-software-2/exif-grep-4175413171/)

lilleskut 06-24-2012 06:45 PM

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?

pixellany 06-24-2012 06:57 PM

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.

syg00 06-24-2012 07:46 PM

Perl maybe ?. exiftool.

lilleskut 06-25-2012 01:48 AM

Quote:

Originally Posted by pixellany (Post 4710870)
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.

druuna 06-25-2012 02:49 AM

Did you have a look at exiv2?

I'm not sure about other distro's, but it is part of Debian.

lilleskut 06-26-2012 09:45 AM

debian is perfectly fine. Will have a look. Thanks.


All times are GMT -5. The time now is 09:12 PM.