Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Search for comments in JPEG headers Apps
Over on the forum site, thorsten.b. was looking for a way to search the header information in a bunch of JPEG images for a particular comment.

Two possible methods were suggested -- mark hunte recommended the first is a Unix program called rdjpgcom. This app can be installed via Fink, or you can install it yourself from source -- I found this page which provides a few helpful install instructions. Once installed, use man rdjpgcom for information on how to use the application.

The other method is an AppleScript, written by robJ, that creates a text file containing the path to matching files, and the contents of the matching files' comment fields. Check out the forum thread for the script's source...

I haven't directly tested either of these, but thought it might be helpful to some folks out there.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,396 views]  

Search for comments in JPEG headers | 7 comments | Create New Account
Click here to return to the 'Search for comments in JPEG headers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Search for comments in JPEG headers
Authored by: jmcdonnell on Nov 26, '04 09:05:21PM

Use a program called speedsearch. Give speedsearch a group of text and it will find it anywhere that you specify on your hard drive. You can select from one folder or the entire hard drive. You can even search the system folder if you want to.



[ Reply to This | # ]
Extract/Modify ALL exif info in jpgs
Authored by: mitigator on Nov 27, '04 03:33:14AM

Quicker and easier: jhead.

JHead is a freeware program that extracts and/or modifies the EXIF headers of JPEG files.

Here's an example:

intuition% /sw/bin/jhead IMG_8034.JPG
File name : IMG_8034.JPG
File size : 2112874 bytes
File date : 2004:02:24 17:23:30
Camera make : Canon
Camera model : Canon EOS 10D
Date/Time : 2004:02:24 17:23:30
Resolution : 3072 x 2048
Orientation : rotate 90
Flash used : Yes
Focal length : 19.0mm (35mm equivalent: 30mm)
CCD width : 22.66mm
Exposure time: 0.017 s (1/60)
Aperture : f/3.5
ISO equiv. : 400
Metering Mode: matrix
Jpeg process : Baseline

.. it's available as a fink port, or from http://www.sentex.net/~mwandel/jhead/

-jamie



[ Reply to This | # ]
Search for comments in JPEG headers
Authored by: adrianm on Nov 27, '04 05:18:03AM
sips (already installed) will do much of what you'd need.

For example: sips -g all image.jpg will get all image properties. Can also get profile information. Run sips --help for more info.

sips, I believe, is the UNIX command-line version of AppleScript's image manipulation capabilities, and so much faster.

Of course, if you are not in a hurry, wait for Tiger, as Spotlight will do this for you :-)

[ Reply to This | # ]

Search for comments in JPEG headers
Authored by: adrianm on Nov 27, '04 05:27:29AM
As a comparison of sips to jhead, this is a sample output from sips:

~ % sips -g all DSC00404.JPG                                
/Users/adrian/DSC00404.JPG
  pixelWidth: 2048
  pixelHeight: 1536
  format: jpeg
  formatOptions: default
  dpiWidth: 72.000
  dpiHeight: 72.000
  samplesPerPixel: 3
  bitsPerSample: 8
  space: RGB
  profile: Camera RGB Profile
  creation: 2004:11:27 10:24:05
  make: SONY
  model: DSC-P52
  software: QuickTime 6.5.2
  description: jeep safari rest stop
  copyright: 2004
  artist: Adrian Milliner
Note that with sips, you can set most of these properties too.

[ Reply to This | # ]
GraphicConverter does this as well
Authored by: magir on Nov 27, '04 08:09:59AM

Just wanted to add that - of course - GraphiConverter does this as well. Searching via the browser in EXIF and IPTC-Headers :-)



[ Reply to This | # ]
Search for comments in JPEG headers
Authored by: chabig on Nov 27, '04 09:09:03PM

Spotlight will do this in Tiger. Come on Tiger!



[ Reply to This | # ]
Search for comments in JPEG headers
Authored by: argh128 on Nov 28, '04 12:18:49PM

And iPhoto 2004 does this now.

You just need to set up a smart folder.

---

A completely SANE Canadian.



[ Reply to This | # ]