LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2008, 06:42 AM   #1
confused.com
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
How to extract metadata information using exiftool for specific model of camera???


I have a file of images, about 100 images. I can display the information of all these images using the command metacam 0.* jpg. Using this i get all 100 files displayed, were some open and some show the information of the image, but this is an unrealistic way of finding specific images taken with a specific camera model.

However, i want to find specific images that have been taken with a Canon PowerShot camera, however i am unsure as to how to extract this metadata, i was looking at some websites and they do not even have PowerShot model as a recognizable tag in exiftool? Can anybody help me out please?



Thanks in advance.
 
Old 10-17-2008, 08:01 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
On the command line

Code:
for fn in $(ls *.jpg); do if [ ! -z "$(exiftool -CanonImageType $fn | grep PowerShot)" ]; then echo $fn; fi; done;
exiftool outputs the ImageType. When the string contains "PowerShot", the file name is displayed.

jlinkels
 
  


Reply



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
How to extract metadata information using exiftool for specific model of camera??? confused.com Linux - Newbie 1 02-03-2010 06:58 AM
tar extract specific directory lrt Linux - Software 7 12-01-2007 08:40 AM
How To extract .tar.gz To A Specific Directory? George2 Linux - Software 4 02-18-2006 07:01 AM
metadata information Prasun1 Linux - General 7 06-27-2005 11:32 PM
Extract specific files from .tgz dgermann Linux - Newbie 6 08-25-2004 10:39 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration