Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Created July 16, 2015 09:07
Show Gist options
  • Select an option

  • Save wpweb101/04a4b1d1321a8868224b to your computer and use it in GitHub Desktop.

Select an option

Save wpweb101/04a4b1d1321a8868224b to your computer and use it in GitHub Desktop.
Edd Download Image Watermark - PNG image quality
<?php
/**
* Function to handle the download image png quality
* Note : Value should be numeric and bettween 0 to 9
*
* @param int $quality
* @return $quality
*/
function edd_img_wtm_png_quality( $quality ) {
$quality = 6;
return $quality;
}
add_filter( 'edd_img_wtm_png_quality', 'edd_img_wtm_png_quality' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment