- Timestamp:
- 2011-06-01T12:33:42+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/cpan/Image/ExifTool/PhotoMechanic.pm
r16842 r24107 16 16 use Image::ExifTool::XMP; 17 17 18 $VERSION = '1.0 0';18 $VERSION = '1.02'; 19 19 20 20 sub ProcessPhotoMechanic($$); … … 50 50 ); 51 51 52 # raw Crop coordinate conversions52 # raw/preview crop coordinate conversions 53 53 my %rawCropConv = ( 54 54 ValueConv => '$val / 655.36', … … 65 65 WRITABLE => 1, 66 66 FORMAT => 'int32s', 67 209 => { 68 Name => 'RawCropLeft', 69 %rawCropConv, 70 }, 71 210 => { 72 Name => 'RawCropTop', 73 %rawCropConv, 74 }, 75 211 => { 76 Name => 'RawCropRight', 77 %rawCropConv, 78 }, 79 212 => { 80 Name => 'RawCropBottom', 81 %rawCropConv, 82 }, 67 209 => { Name => 'RawCropLeft', %rawCropConv }, 68 210 => { Name => 'RawCropTop', %rawCropConv }, 69 211 => { Name => 'RawCropRight', %rawCropConv }, 70 212 => { Name => 'RawCropBottom', %rawCropConv }, 83 71 213 => 'ConstrainedCropWidth', 84 72 214 => 'ConstrainedCropHeight', … … 106 94 }, 107 95 223 => 'Rating', 96 236 => { Name => 'PreviewCropLeft', %rawCropConv }, 97 237 => { Name => 'PreviewCropTop', %rawCropConv }, 98 238 => { Name => 'PreviewCropRight', %rawCropConv }, 99 239 => { Name => 'PreviewCropBottom', %rawCropConv }, 108 100 ); 109 101 … … 122 114 EditStatus => { }, 123 115 Prefs => { 116 Notes => 'format is "Tagged:0, ColorClass:1, Rating:2, FrameNum:3"', 124 117 PrintConv => q{ 125 118 $val =~ s[\s*(\d+):\s*(\d+):\s*(\d+):\s*(\S*)] … … 164 157 last unless $footer =~ /cbipcbbl$/; 165 158 my $size = unpack('N', $footer); 166 159 167 160 if ($size & 0x80000000 or not $raf->Seek(-$size-12, 1)) { 168 161 $exifTool->Warn('Bad PhotoMechanic trailer'); … … 178 171 $$dirInfo{DataPos} = $raf->Tell() - $size; 179 172 $$dirInfo{DirLen} = $size + 12; 180 173 181 174 my %dirInfo = ( 182 175 DataPt => \$buff, … … 238 231 =head1 AUTHOR 239 232 240 Copyright 2003-20 07, Phil Harvey (phil at owl.phy.queensu.ca)233 Copyright 2003-2011, Phil Harvey (phil at owl.phy.queensu.ca) 241 234 242 235 This library is free software; you can redistribute it and/or modify it
Note:
See TracChangeset
for help on using the changeset viewer.