Title: Image quality
Last modified: August 20, 2016

---

# Image quality

 *  [BissWordpress](https://wordpress.org/support/users/bisswordpress/)
 * (@bisswordpress)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/image-quality-1/)
 * Hello in 3.5.1 there’s
 *     ```
       /**
       195	         * Sets Image Compression quality on a 1-100% scale.
       196	         *
       197	         * @since 3.5.0
       198	         * @access public
       199	         *
       200	         * @param int $quality Compression Quality. Range: [1,100]
       201	         * @return boolean
       202	         */
       203	        public function set_quality( $quality ) {
       204	                $this->quality = apply_filters( 'wp_editor_set_quality', $quality );
       205
       206	                return ( (bool) $this->quality );
       207	        }
       ```
   
 * [http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/class-wp-image-editor.php#L194](http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/class-wp-image-editor.php#L194)
 * How can i set the images to be 80? what do I have to add? what is the code and
   where?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/image-quality-1/#post-3546520)
 * Best not to ever edit any WordPress core files. The easiest solution might be
   to add a filter to your current themes functions.php file.
 * Take a look at this article and see what you think.
 * [Stop WordPress Compressing JPEG Images](http://www.paulund.co.uk/stop-wordpress-compressing-jpeg-images)
 * (note the comment Otto made on that article for clarification)
 * You may be able to find more examples and discussions on how to use the jpeg_quality
   hook here in the form as well. [http://wordpress.org/search/jpeg_quality](http://wordpress.org/search/jpeg_quality)

Viewing 1 replies (of 1 total)

The topic ‘Image quality’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/image-quality-1/#post-3546520)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
