|
25 | 25 | class Exiftool implements MapperInterface |
26 | 26 | { |
27 | 27 | const APERTURE = 'Composite:Aperture'; |
28 | | - const APPROXIMATEFOCUSDISTANCE = 'XMP:ApproximateFocusDistance'; |
29 | | - const ARTIST = 'EXIF:Artist'; |
30 | | - const CAPTION = 'XMP:Caption'; |
| 28 | + const APPROXIMATEFOCUSDISTANCE = 'XMP-aux:ApproximateFocusDistance'; |
| 29 | + const ARTIST = 'IFD0:Artist'; |
| 30 | + const CAPTION = 'XMP-acdsee'; |
31 | 31 | const CAPTIONABSTRACT = 'IPTC:Caption-Abstract'; |
32 | | - const COLORSPACE = 'EXIF:ColorSpace'; |
33 | | - const COPYRIGHT = 'EXIF:Copyright'; |
34 | | - const CREATEDATE = 'EXIF:CreateDate'; |
| 32 | + const COLORSPACE = 'ExifIFD:ColorSpace'; |
| 33 | + const COPYRIGHT = 'IFD0:Copyright'; |
| 34 | + const CREATEDATE = 'ExifIFD:CreateDate'; |
35 | 35 | const CREDIT = 'IPTC:Credit'; |
36 | | - const EXPOSURETIME = 'EXIF:ExposureTime'; |
37 | | - const FILESIZE = 'File:FileSize'; |
38 | | - const FOCALLENGTH = 'EXIF:FocalLength'; |
| 36 | + const EXPOSURETIME = 'ExifIFD:ExposureTime'; |
| 37 | + const FILESIZE = 'System:FileSize'; |
| 38 | + const FOCALLENGTH = 'ExifIFD:FocalLength'; |
39 | 39 | const HEADLINE = 'IPTC:Headline'; |
40 | 40 | const IMAGEHEIGHT = 'File:ImageHeight'; |
41 | 41 | const IMAGEWIDTH = 'File:ImageWidth'; |
42 | | - const ISO = 'EXIF:ISO'; |
| 42 | + const ISO = 'ExifIFD:ISO'; |
43 | 43 | const JOBTITLE = 'IPTC:By-lineTitle'; |
44 | 44 | const KEYWORDS = 'IPTC:Keywords'; |
45 | 45 | const MIMETYPE = 'File:MIMEType'; |
46 | | - const MODEL = 'EXIF:Model'; |
47 | | - const ORIENTATION = 'EXIF:Orientation'; |
48 | | - const SOFTWARE = 'EXIF:Software'; |
| 46 | + const MODEL = 'IFD0:Model'; |
| 47 | + const ORIENTATION = 'IFD0:Orientation'; |
| 48 | + const SOFTWARE = 'IFD0:Software'; |
49 | 49 | const SOURCE = 'IPTC:Source'; |
50 | 50 | const TITLE = 'IPTC:ObjectName'; |
51 | | - const XRESOLUTION = 'EXIF:XResolution'; |
52 | | - const YRESOLUTION = 'EXIF:YResolution'; |
53 | | - const GPSLATITUDE = 'EXIF:GPSLatitude'; |
54 | | - const GPSLONGITUDE = 'EXIF:GPSLongitude'; |
| 51 | + const XRESOLUTION = 'IFD0:XResolution'; |
| 52 | + const YRESOLUTION = 'IFD0:YResolution'; |
| 53 | + const GPSLATITUDE = 'GPS:GPSLatitude'; |
| 54 | + const GPSLONGITUDE = 'GPS:GPSLongitude'; |
55 | 55 |
|
56 | 56 | /** |
57 | 57 | * Maps the ExifTool fields to the fields of |
@@ -172,8 +172,8 @@ public function mapRawData(array $data) |
172 | 172 |
|
173 | 173 | // add GPS coordinates, if available |
174 | 174 | if (count($gpsData) === 2 && $gpsData['lat'] !== false && $gpsData['lon'] !== false) { |
175 | | - $latitudeRef = empty($data['EXIF:GPSLatitudeRef'][0]) ? 'N' : $data['EXIF:GPSLatitudeRef'][0]; |
176 | | - $longitudeRef = empty($data['EXIF:GPSLongitudeRef'][0]) ? 'E' : $data['EXIF:GPSLongitudeRef'][0]; |
| 175 | + $latitudeRef = empty($data['GPS:GPSLatitudeRef'][0]) ? 'N' : $data['GPS:GPSLatitudeRef'][0]; |
| 176 | + $longitudeRef = empty($data['GPS:GPSLongitudeRef'][0]) ? 'E' : $data['GPS:GPSLongitudeRef'][0]; |
177 | 177 |
|
178 | 178 | $gpsLocation = sprintf( |
179 | 179 | '%s,%s', |
|
0 commit comments