Tommy Cutter

Web, app and game developer.

Date: December 17, 2007

Alec Baldwin: Three Random Things – Entertainment on The Huffington Post

Link: Alec Baldwin: Three Random Things – Entertainment on The Huffington Post

Alec Baldwin reviews two great movies. And I love his last comment, haha.

Easily read exif data via imagemagick and php

ImageMagick’s “identify” program has a way to easily return individual exif data properties. This is stuff that I really need to start storing in a database on Photo Council so that it an be accessed faster.

Here’s an examle in php of getting and printing the make of the camera a photo was taken with
exec("identify -format "%[EXIF:Make]" b.jpg", $make);
print("make: ". $make[0]);

The raw command looks like this
%[EXIF:Tag]

“Tag” can be any of these parameters
* (print all Exif tags, in keyword=data format)
! (print all Exif tags, in tag_number data format)
#hhhh (print data for Exif tag #hhhh)
ImageWidth
ImageLength
BitsPerSample
Compression
PhotometricInterpretation
FillOrder
DocumentName
ImageDescription
Make
Model
StripOffsets
Orientation
SamplesPerPixel
RowsPerStrip
StripByteCounts
XResolution
YResolution
PlanarConfiguration
ResolutionUnit
TransferFunction
Software
DateTime
Artist
WhitePoint
PrimaryChromaticities
TransferRange
JPEGProc
JPEGInterchangeFormat
JPEGInterchangeFormatLength
YCbCrCoefficients
YCbCrSubSampling
YCbCrPositioning
ReferenceBlackWhite
CFARepeatPatternDim
CFAPattern
BatteryLevel
Copyright
ExposureTime
FNumber
IPTC/NAA
ExifOffset
InterColorProfile
ExposureProgram
SpectralSensitivity
GPSInfo
ISOSpeedRatings
OECF
ExifVersion
DateTimeOriginal
DateTimeDigitized
ComponentsConfiguration
CompressedBitsPerPixel
ShutterSpeedValue
ApertureValue
BrightnessValue
ExposureBiasValue
MaxApertureValue
SubjectDistance
MeteringMode
LightSource
Flash
FocalLength
MakerNote
UserComment
SubSecTime
SubSecTimeOriginal
SubSecTimeDigitized
FlashPixVersion
ColorSpace
ExifImageWidth
ExifImageLength
InteroperabilityOffset
FlashEnergy
SpatialFrequencyResponse
FocalPlaneXResolution
FocalPlaneYResolution
FocalPlaneResolutionUnit
SubjectLocation
ExposureIndex
SensingMethod
FileSource
SceneType

© 2017 Tommy Cutter

Theme by Anders NorenUp ↑