Changeset 13976
- Timestamp:
- 08/19/2024 08:14:21 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/photo.php
r13974 r13976 1010 1010 } 1011 1011 1012 // Remap deprecated and unmapped properties. 1013 // @see https://exiv2.org/tags.html 1014 // @see https://github.com/exiftool/exiftool/blob/master/lib/Image/ExifTool/Exif.pm 1015 // @see https://github.com/neos/metadata-extractor/blob/master/Classes/Domain/Extractor/ExifExtractor.php#L43 1016 $remap = [ 1017 'GPSVersion' => 'GPSVersionID', 1018 'ISOSpeedRatings' => 'PhotographicSensitivity', 1019 'UndefinedTag:0x001F' => 'GPSHPositioningError', 1020 'UndefinedTag:0x8830' => 'SensitivityType', 1021 'UndefinedTag:0x8832' => 'RecommendedExposureIndex', 1022 'UndefinedTag:0x9010' => 'OffsetTime', 1023 'UndefinedTag:0x9011' => 'OffsetTimeOriginal', 1024 'UndefinedTag:0x9012' => 'OffsetTimeDigitized', 1025 'UndefinedTag:0x9400' => 'Temperature', 1026 'UndefinedTag:0x9401' => 'Humidity', 1027 'UndefinedTag:0x9402' => 'Pressure', 1028 'UndefinedTag:0x9403' => 'WaterDepth', 1029 'UndefinedTag:0x9404' => 'Acceleration', 1030 'UndefinedTag:0x9405' => 'CameraElevationAngle', 1031 'UndefinedTag:0x9999' => 'XiaomiSettings', 1032 'UndefinedTag:0xA430' => 'CameraOwnerName', 1033 'UndefinedTag:0xA431' => 'BodySerialNumber', 1034 'UndefinedTag:0xA432' => 'LensSpecification', 1035 'UndefinedTag:0xA433' => 'LensMake', 1036 'UndefinedTag:0xA434' => 'LensModel', 1037 'UndefinedTag:0xA435' => 'LensSerialNumber', 1038 'UndefinedTag:0xA460' => 'CompositeImage', 1039 'UndefinedTag:0xA500' => 'Gamma', 1040 ]; 1041 foreach ( $remap as $old => $new ) { 1042 if ( isset( $exif[ $old ] ) ) { 1043 $exif[ $new ] = $exif[ $old ]; 1044 unset( $exif[ $old ] ); 1045 } 1046 } 1047 1012 1048 // Ignore EXIF keys that are definitely not worth including. 1013 1049 $ignored_exif = apply_filters(
Note: See TracChangeset
for help on using the changeset viewer.