ก็แค่นั้น ตอนแรกงงว่าทำไมไม่ work เพราะว่า exif ต้องใช้คู่กับ mbstring.dll นั่นเอง...
Your PHP must be compiled in with --enable-exif. PHP does not require any additional library for the exif module. Windows users must also have the mbstring extension enabled.
Exif
Exchangeable image file format คือ image meta data ที่ใช้ในกล้อง digital เพื่อเก็บข้อมูลต่างๆของรูปภาพเอาไว้
ด้วยข้อมูล image meta เหล่านี้ เราสามารถทราบได้ว่ารูปภาพดังกล่าวมีขนาดเท่าไหร่ กว้าง ยาวเท่าไหร่ มีกี่สี (กี่บิต) ถ่ายจากกล้องยี่ห้ออะไร รุ่นไหน ถ่ายกี่โมง ความเร็ว shutter เท่าไหร่ รับแสงเท่าไหร่
ใช้ Flash หรือเปล่า
ใครสนใจลองไปอ่านดูที่ http://en.wikipedia.org/wiki/Exif
ภาพตัวอย่างจากโปรแกรม irfanview.net
ข้อมูลที่ได้จาก Exif
Make - FUJIFILM
Model - FinePix S5600
Orientation - Top left
XResolution - 72
YResolution - 72
ResolutionUnit - Inch
Software - Digital Camera FinePix S5600 Ver1.00
DateTime - 2006:10:15 14:44:24
YCbCrPositioning - Co-Sited
Copyright -
ExifOffset - 294
ExposureTime - 1/85 seconds
FNumber - 3.30
ExposureProgram - Normal program
ISOSpeedRatings - 400
ExifVersion - 0220
DateTimeOriginal - 2006:10:15 14:44:24
DateTimeDigitized - 2006:10:15 14:44:24
ComponentsConfiguration - YCbCr
CompressedBitsPerPixel - 2.00 (bits/pixel)
ShutterSpeedValue - 1/86 seconds
ApertureValue - F 3.25
BrightnessValue - 3.06
ExposureBiasValue - 0.00
MaxApertureValue - F 3.25
MeteringMode - Multi-segment
LightSource - Auto
Flash - Not fired, compulsory flash mode
FocalLength - 13.30 mm
FlashPixVersion - 0100
ColorSpace - sRGB
ExifImageWidth - 2592
ExifImageHeight - 1944
InteroperabilityOffset - 1158
FocalPlaneXResolution - 4442
FocalPlaneYResolution - 4442
FocalPlaneResolutionUnit - Centimeter
SensingMethod - One-chip color area sensor
FileSource - DSC - Digital still camera
SceneType - A directly photographed image
CustomRendered - Normal process
ExposureMode - Auto
WhiteBalance - Auto
SceneCaptureType - Standard
Sharpness - Normal
SubjectDistanceRange - Unknown
Maker Note (Vendor): -
Version - 30333130
Quality - NORMAL
Sharpness - Normal
White Balance - Auto
Color saturation - Normal
Flash Mode - Off
Flash Strength - 0.00
Macro - Off
Focus mode - Auto
Slow Sync. - Off
Picture Mode - Auto
Unknown - 1
Sequence mode - Off
Unknown - 0
Blur warning - Yes
Focus warning - No (Focus OK)
AE warning - No (AE good)
บันทึกนี้เขียนที่ GotoKnow โดย Patrickz 2.0 ใน Patrickz - just a developer
ไม่อนุญาตให้แสดงความเห็น
อนุญาตให้แสดงความเห็นได้เฉพาะสมาชิก