a mod for the mod...
Atm on all images (intermediate and fullsized) the same watermark gets applied. However it may look oversized on the intermediate. Now it's possible to let the watermark mod calculate a reduced watermark size for small images.
I just copy the description from my modpack.
Automatically downsizing of the watermark image when the uploaded picture is smaller than the width you set (Downsize watermark if width of an picture is smaller than entered value. That is the 100% reference point. Resizing of the watermark is linear (0 to disable)).
If you eg. enter here 1024 (like I did on my demo site), then the 100% reference is at images with a width of 1024px or bigger. If you upload pics > 1024px the watermark image won't get resized and attached with its full size. If you let coppermine create an intermediate image with a width of 400 pics, then the watermark will get downsized to 39% of it's original size. Is the fullsized eg. 512px, then the watermark will have 50% of it's orig size. Of course this sucks some CPU. And it's working excellent together with (example:
http://stramm.st.funpic.org/displayimage.php?pos=-96 )
Files and thumbnails settings -> Auto resize images that are larger than max width or height (set it to the same as you used for the 100% reference... in the example 1024)
this way the watermark will always fit perfectly onto your images.
I assume you already applied the watermark mod in this thread and you have it working. That's the changes you have to do then.
sql/update.sql
at the end of this file add
INSERT INTO CPG_config (name, value) values ('reduce_watermark', '0');
lang/english.php
find
array('Transparency 0-100 for entire image', 'watermark_transparency', 0),
below add
array('Downsize watermark if width of an picture is smaller than entered value. That is the 100% reference point. Resizing of the watermark is linear (0 to disable)', 'reduce_watermark', 0),
now download the attached file, unpack it and upload it in your include folder replacing the existing file (include/picmgmnt.inc.php)
run update.php
have fun
PS: I've attached a test watermark png... feel free to experiment with it. The watermark file has a layer transparency of ~60-70% (have forgotten what value exactly) so you should see the image through it. Usually I have it in the images/ directory, if you do the same, then the path is images/watermark.png
an example:
http://stramm.st.funpic.org/displayimage.php?album=7&pos=5new attached file.... picmgmnt.inc.1.4.6.zip is the latest picmgmnt.inc.php file for CPG 1.4.6-1.4.8