Changeset 11930 for trunk/wp-includes/media.php
- Timestamp:
- 09/14/2009 02:03:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r11911 r11930 350 350 351 351 imagecopyresampled( $newimage, $image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h); 352 352 353 353 // convert from full colors to index colors, like original PNG. 354 354 if ( IMAGETYPE_PNG == $orig_type && !imageistruecolor( $image ) ) … … 379 379 // all other formats are converted to jpg 380 380 $destfilename = "{$dir}/{$name}-{$suffix}.jpg"; 381 if ( !imagejpeg( $newimage, $destfilename, apply_filters( 'jpeg_quality', $jpeg_quality, 'image_resize' ) ) ) 381 if ( !imagejpeg( $newimage, $destfilename, apply_filters( 'jpeg_quality', $jpeg_quality, 'image_resize' ) ) ) 382 382 return new WP_Error('resize_path_invalid', __( 'Resize path invalid' )); 383 383 } … … 838 838 case 'image/gif': 839 839 return function_exists('imagecreatefromgif'); 840 } 840 } 841 841 } 842 842 return false;
Note: See TracChangeset
for help on using the changeset viewer.