Server Side Watermark Script Needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dennis69
    Confirmed User
    • Feb 2003
    • 1685

    #1

    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
    HaHaHa
  • Jakez
    Confirmed User
    • Jan 2004
    • 5656

    #2
    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
    Last edited by Jakez; 04-05-2011, 09:32 PM.
    [email protected] - jakezdumb - 573689400

    Killuminati

    Comment

    • fris
      Too lazy to set a custom title
      • Aug 2002
      • 55679

      #3
      Originally posted by Dennis69
      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
      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.
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

      Comment

      Working...