Changeset 6438 for trunk/wp-admin/includes/image.php
- Timestamp:
- 12/20/2007 10:18:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r6363 r6438 250 250 if ( !file_exists( $file ) ) 251 251 return false; 252 253 list(,,$sourceImageType) = getimagesize( $file ); 252 254 253 255 // exif contains a bunch of data we'll probably never need formatted in ways that are difficult to use. … … 288 290 289 291 // fetch additional info from exif if available 290 if ( is_callable('exif_read_data') ) {292 if ( is_callable('exif_read_data') && in_array($sourceImageType, apply_filters('wp_read_image_metadata_types', array(IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM)) ) ) { 291 293 $exif = exif_read_data( $file ); 292 294 if (!empty($exif['FNumber'])) … … 305 307 // FIXME: try other exif libraries if available 306 308 307 return apply_filters( 'wp_read_image_metadata', $meta, $file );309 return apply_filters( 'wp_read_image_metadata', $meta, $file, $sourceImageType ); 308 310 309 311 }
Note: See TracChangeset
for help on using the changeset viewer.