Ticket #22259: image.php.patch
File image.php.patch, 1.0 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/image.php
254 254 if ( ! empty($exif['DateTimeDigitized'] ) ) 255 255 $meta['created_timestamp'] = wp_exif_date2ts($exif['DateTimeDigitized'] ); 256 256 if ( ! empty($exif['FocalLength'] ) ) 257 $meta['focal_length'] = wp_exif_frac2dec( $exif['FocalLength']);257 $meta['focal_length'] = round( wp_exif_frac2dec( $exif['FocalLength'] ), 4 ); 258 258 if ( ! empty($exif['ISOSpeedRatings'] ) ) { 259 259 $meta['iso'] = is_array( $exif['ISOSpeedRatings'] ) ? reset( $exif['ISOSpeedRatings'] ) : $exif['ISOSpeedRatings']; 260 260 $meta['iso'] = trim( $meta['iso'] ); 261 261 } 262 262 if ( ! empty($exif['ExposureTime'] ) ) 263 $meta['shutter_speed'] = wp_exif_frac2dec( $exif['ExposureTime']);263 $meta['shutter_speed'] = round( wp_exif_frac2dec( $exif['ExposureTime'] ), 4 ); 264 264 } 265 265 266 266 foreach ( array( 'title', 'caption', 'credit', 'copyright', 'camera', 'iso' ) as $key ) {