Ticket #28916: 28916.patch
File 28916.patch, 684 bytes (added by , 10 years ago) |
---|
-
image.php
269 269 'iso' => 0, 270 270 'shutter_speed' => 0, 271 271 'title' => '', 272 'orientation' => 0, 272 273 ); 273 274 274 275 // read iptc first, since it might contain data not available in exif such … … 379 380 if ( ! empty( $exif['ExposureTime'] ) ) { 380 381 $meta['shutter_speed'] = (string) wp_exif_frac2dec( $exif['ExposureTime'] ); 381 382 } 383 if ( ! empty( $exif['Orientation'] ) ) { 384 $meta['orientation'] = $exif['Orientation']; 385 } 382 386 } 383 387 384 388 foreach ( array( 'title', 'caption', 'credit', 'copyright', 'camera', 'iso' ) as $key ) {