Changeset 26648 for trunk/src/wp-includes/class-wp-image-editor.php
- Timestamp:
- 12/04/2013 11:31:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor.php
r26645 r26648 214 214 215 215 /** 216 * Filter the default quality setting.216 * Filter the default image compression quality setting. 217 217 * 218 218 * @since 3.5.0 … … 222 222 $quality = apply_filters( 'wp_editor_set_quality', $quality, $this->mime_type ); 223 223 224 /**225 * Filter the JPEG quality for backwards compatibilty.226 *227 * @since 2.5.0228 *229 * @param int $quality Quality level between 0 (low) and 100 (high) of the JPEG.230 * @param string The context of the filter.231 */232 224 if ( 'image/jpeg' == $this->mime_type ) { 225 /** 226 * Filter the JPEG compression quality for backward-compatibility. 227 * 228 * The filter is evaluated under two contexts: 'image_resize', and 'edit_image', 229 * (when a JPEG image is saved to file). 230 * 231 * @since 2.5.0 232 * 233 * @param int $quality Quality level between 0 (low) and 100 (high) of the JPEG. 234 * @param string $context Context of the filter. 235 */ 233 236 $quality = apply_filters( 'jpeg_quality', $quality, 'image_resize' ); 234 237
Note: See TracChangeset
for help on using the changeset viewer.