Created
July 16, 2015 09:03
-
-
Save wpweb101/1cde9a648b4660128e67 to your computer and use it in GitHub Desktop.
Edd Download Image Watermark - JPEG image quality
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Function to handle the download image jpeg quality | |
| * Note : Value should be numeric and bettween 0 to 100 | |
| * | |
| * @param int $quality | |
| * @return $quality | |
| */ | |
| function edd_img_wtm_jpeg_quality( $quality ) { | |
| $quality = 88; | |
| return $quality; | |
| } | |
| add_filter( 'edd_img_wtm_jpeg_quality', 'edd_img_wtm_jpeg_quality' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment