GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Server Side Watermark Script Needed (https://gfy.com/showthread.php?t=1017233)

Dennis69 04-05-2011 06:00 PM

Server Side Watermark Script Needed
 
I was wondering if there is a script which I can drop into a dir server side and add a watermark to photos, I don't want to do over a 1/4 million pictures by hand :helpme

Jakez 04-05-2011 10:30 PM

You could do this with .htaccess, any image in the directory that is called or shown will be automatically rendered on the fly with a watermark, and you don't even have to watermark the actual image, which is good so you won't have watermarks in your cropped thumbs later. Sorry I couldn't find which htaccess file I have it in though :(

fris 04-06-2011 06:34 AM

Quote:

Originally Posted by Dennis69 (Post 18035379)
I was wondering if there is a script which I can drop into a dir server side and add a watermark to photos, I don't want to do over a 1/4 million pictures by hand :helpme

use imagemagick.

Code:

composite -gravity southeast -quality 90 -dissolve 50 watermark.png image.jpg newimage.jpg
that would be the watermark in the bottom right.

first: backup the originals

second: goto the dir of images you wanna watemark (also make sure your watermark.png is in this folder)

Code:

find . -name "*jpg" -type f -exec composite -gravity southeast -quality 90 -dissolve 50 watermark.png {} {} \;
hope this helps.


All times are GMT -7. The time now is 08:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123