Login   Register  
PHP Classes


Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Transparent Watermark  >  All threads  >  watermarking  >  (Un) Subscribe thread alerts  
Summary:image quality
Date:2005-07-13 10:28:49
Update:2006-10-12 22:39:42

  1. watermarking   Reply   Report abuse  
Picture of chris
2005-07-13 10:28:49
The watermarking works perfectly but the output JPEG image quality is grainy and poor - is there any way to set the quality of the output file?

  2. Re: watermarking   Reply   Report abuse  
Picture of Paul Millard
Paul Millard
2006-10-12 22:39:42 - In reply to message 1 from chris
It's the randomizing of the pixels that does it, just go to line 162 or thereabouts, and comment out the if line that is doing that, and set randomizer to 0:

#if ($stampAverage>10) $randomizer=rand(-transparentWatermarkRandPixelLightLevel, +transparentWatermarkRandPixelLightLevel);
#else $randomizer=0;
$randomizer = 0;

That should fix it. Then use a PNG-24 or PNG-8 set to transparent, and set the layer to 20-50% opacity.