Changeset 10682
- Timestamp:
- 03/02/2009 09:55:40 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image.php
r10150 r10682 69 69 $dst_file = preg_replace( '/\\.[^\\.]+$/', '.jpg', $dst_file ); 70 70 71 if ( imagejpeg( $dst, $dst_file ) )71 if ( imagejpeg( $dst, $dst_file, apply_filters( 'jpeg_quality', 90, 'wp_crop_image' ) ) ) 72 72 return $dst_file; 73 73 else -
trunk/wp-includes/media.php
r10498 r10682 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 ) ) )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 }
Note: See TracChangeset
for help on using the changeset viewer.