PDA

Click to See Complete Forum and Search --> : how to add a watermark on a picture and save it using php?


bybruno
Oct 9th, 2007, 10:45 AM
hi,
i looking for a solution to
add a watermark on a picture and save in same directory using php
so far i find a script to add a watermark but i want save that file in same
directory any one can help me?
thanks a lot :)

dclamp
Oct 18th, 2007, 11:41 PM
This is a php question that would be best fit in the php forum. i will get a mod to move it. :)

RobDog888
Oct 19th, 2007, 04:05 AM
Anyone can always either pm a mod or report the thread so someone on the staff can get notice and move a thread. ;)

Thread Moved

Sounds like you just need help with the saving to a new file?

visualAd
Oct 19th, 2007, 08:59 AM
Are you using the GD library?

If so, you can just output the image to a file:

// for a jpeg
imagejpeg ($image, $filename)


http://de3.php.net/manual/en/function.imagejpeg.php

dclamp
Oct 19th, 2007, 04:29 PM
Anyone can always either pm a mod or report the thread so someone on the staff can get notice and move a thread. ;)

Thread Moved

Sounds like you just need help with the saving to a new file?


i pmed hack last night.

If you are uploading the file, you are going to have to upload it, load it into gd, and save it again. gd functions (http://www.php.net/gd)