Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (***NEW HOME PAGE*** "http://pfrank.atwebpages.com")
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sample and Template .py fixes

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions
View previous topic :: View next topic  
Author Message
rocket



Joined: 18 Feb 2009
Posts: 3
Location: Melbourne, Australia

PostPosted: Sat Feb 21, 2009 10:02 am    Post subject: Sample and Template .py fixes Reply with quote

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
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sat Feb 21, 2009 4:53 pm    Post subject: Reply with quote

Thank you Rod!

I'll update the plugin this weekend.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com