Make WordPress Core


Ignore:
Timestamp:
03/21/2008 08:31:50 AM (18 years ago)
Author:
westi
Message:

Add a filter to the jpeg_quality to allow for it to be modified. Fixes #6289.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r7298 r7444  
    224224                // all other formats are converted to jpg
    225225                $destfilename = "{$dir}/{$name}-{$suffix}.jpg";
    226                 if (!imagejpeg( $newimage, $destfilename, $jpeg_quality ) )
     226                if (!imagejpeg( $newimage, $destfilename, apply_filters( 'jpeg_quality', $jpeg_quality ) ) )
    227227                        return new WP_Error('resize_path_invalid', __( 'Resize path invalid' ));
    228228        }
Note: See TracChangeset for help on using the changeset viewer.