rocket
Joined: 18 Feb 2009 Posts: 3 Location: Melbourne, Australia
|
Posted: Sat Feb 21, 2009 10:02 am Post subject: Sample and Template .py fixes |
|
|
Hello Peter,
Just wish to report a couple of fixes that are needed to bring your sample (http://www3.telus.net/pfrank/PFrank_RawImageMetaData_Plugin.py) and template (PFrankUser.py.template) Raw Image Meta Data plugin files into line with what seems to be the new reporting format of exiv2 (Version 0.18) http://www.exiv2.org.
Of note, two new fields have been created (MIME type and Image size) which are inserted as line 3 and 4 (objects 2 & 3) such that there are now 25 lines of output.
The new report format is: (http://www.exiv2.org/sample.html#usage)
File name : img_1771.jpg
File size : 32764 Bytes
MIME type : image/jpeg
Image size : 480 x 360
Camera make : Canon
Camera model : Canon PowerShot S40
Image timestamp : 2003:12:14 12:01:44
Image number : 117-1771
Exposure time : 1/500 s
Aperture : F4.9
Exposure bias : 0
Flash : No, auto
Flash bias : 0 EV
Focal length : 21.3 mm
Subject distance: 782
ISO speed : 100
Exposure mode : Program (P)
Metering mode : Center weighted average
Macro mode : Off
Image quality : Superfine
Exif Resolution : 2272 x 1704
White balance : Auto
Thumbnail : image/jpeg, 5448 Bytes
Copyright :
Exif comment :
So the lines:
MIME Type : image/jpeg
Image Size : 3072 x 2304
need to be added to the sample output listing of exiv2 so that it becomes:
File name : test.jpg
File size : 1495355 Bytes
MIME Type : image/jpeg
Image Size : 3072 x 2304
Camera make : Canon
Camera model : Canon PowerShot A620
Image timestamp : 2007:07:27 11:12:41
Image number : 113-1373
Exposure time : 1/1250 s
Aperture : F3.5
Exposure bias : 0
Flash : No, auto, red-eye reduction
Flash bias : 0 EV
Focal length : 14.9 mm
Subject distance: 90
ISO speed : 50
Exposure mode : Easy shooting (Auto)
Metering mode : Multi-segment
Macro mode : Off
Image quality : Fine
Exif Resolution : 3072 x 2304
White balance : Auto
Thumbnail : JPEG, 3892 Bytes
Copyright :
Exif comment :
and these lines:
self.EXIV2_LINE_MIME_TYPE = 2
self.EXIV2_LINE_IMAGE_SIZE = 3
have to be added and all numbers after that incremented by 2 so that it becomes:
self.EXIV2_LINE_FILE_NAME = 0
self.EXIV2_LINE_FILE_SIZE = 1
self.EXIV2_LINE_MIME_TYPE = 2
self.EXIV2_LINE_IMAGE_SIZE = 3
self.EXIV2_LINE_CAMERA_MAKE = 4
self.EXIV2_LINE_CAMERA_MODEL = 5
self.EXIV2_LINE_IMAGE_TIMESTAMP = 6
self.EXIV2_LINE_IMAGE_NUMBER = 7
self.EXIV2_LINE_EXPOSURE_TIME = 8
self.EXIV2_LINE_APERTURE = 9
self.EXIV2_LINE_EXPOSURE_BIAS = 10
self.EXIV2_LINE_FLASH = 11
self.EXIV2_LINE_FLASH_BIAS = 12
self.EXIV2_LINE_FOCAL_LENGTH = 13
self.EXIV2_LINE_SUBJECT_DISTANCE = 14
self.EXIV2_LINE_ISO_SPEED = 15
self.EXIV2_LINE_EXPOSURE_MODE = 16
self.EXIV2_LINE_METERING_MODE = 17
self.EXIV2_LINE_MACRO_MODE = 18
self.EXIV2_LINE_IMAGE_QUALITY = 19
self.EXIV2_LINE_EXIF_RESOLUTION = 20
self.EXIV2_LINE_WHITE_BALANCE = 21
self.EXIV2_LINE_THUMBNAIL = 22
self.EXIV2_LINE_COPYRIGHT = 23
self.EXIV2_LINE_EXIF_COMMENT = 24
All seems to be working fine for me now that I have made these changes.
Cheers
Rod |
|