Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Increase Avatar Quality – Looks Hazy?

OK, so this is a core WordPress setting. It’s in /wp-admin/includes/image.php – specifically, the call to imagejpeg on line 71. http://php.net/imagejpeg has an optional third argument $quality. It defaults to 75 (0 being worse, 100 being best). If urgent I suggest changing this file for the interim.

Elsewhere in WordPresss, /wp-includes/media.php, we have this:

If (!imagejpeg( $newimage, $destfilename, apply_filters( 'jpeg_quality', $jpeg_quality ) ) )
return new WP_Error('resize_path_invalid', __( 'Resize path invalid' ));

I’ll put a ticket on the WordPress trac to see if we can get this filter added to the call in image.php.

*EDIT*: this is a core WordPress file, not MU.

Skip to toolbar