Ticket #21668: 21668.patch
File 21668.patch, 1.6 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/image-edit.php
223 223 224 224 switch ( $mime_type ) { 225 225 case 'image/jpeg': 226 if ( function_exists( 'imageinterlace' ) ) 227 imageinterlace( $image, 1 ); 226 228 return imagejpeg( $image, $filename, apply_filters( 'jpeg_quality', 90, 'edit_image' ) ); 227 229 case 'image/png': 228 230 return imagepng($image, $filename); -
wp-admin/includes/image.php
76 76 if ( function_exists( 'imageantialias' ) ) 77 77 imageantialias( $dst, true ); 78 78 79 if ( function_exists( 'imageinterlace' ) ) 80 imageinterlace( $dst, 1 ); 81 79 82 imagecopyresampled( $dst, $src, 0, 0, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h ); 80 83 81 84 imagedestroy( $src ); // Free up memory -
wp-includes/media.php
464 464 // all other formats are converted to jpg 465 465 if ( 'jpg' != $ext && 'jpeg' != $ext ) 466 466 $destfilename = "{$dir}/{$name}-{$suffix}.jpg"; 467 468 if ( function_exists( 'imageinterlace' ) ) 469 imageinterlace( $newimage, 1 ); 470 467 471 if ( !imagejpeg( $newimage, $destfilename, apply_filters( 'jpeg_quality', $jpeg_quality, 'image_resize' ) ) ) 468 472 return new WP_Error('resize_path_invalid', __( 'Resize path invalid' )); 469 473 }