PDA

View Full Version : watermarking



eMEraLdwPn
09-12-2004, 07:34 PM
i was using this script i found from sitepoint to watermark images: http://www.sitepoint.com/article/watermark-images-php

i managed to get it to work, but the watermark i used, even though it had a transparent background, ended up writing over the image with a white background...

the images i used are
http://www.drunk-as-hell.com/images/watermark.png
http://www.drunk-as-hell.com/files/1.jpg
and the result was
http://www.drunk-as-hell.com/temp/1.jpg

does anyone have any suggestions? thanks...

Chris
09-13-2004, 07:34 AM
I would say double check the original png and be sure. I've had trouble with transparency and png's before.

Westech
09-13-2004, 07:55 AM
I don't think that jpegs support transparency. Unless your script is somehow merging the pixels for you I think you'll have to use a program like photoshop to drop the transparent image on top of your photo and then export the image as a jpeg.

eMEraLdwPn
09-13-2004, 07:57 AM
yeah, i did test it out to make sure i didn't screw it up somehow, and the image is transparent... hmm.. i would think there would be some way to keep the transparency though without doing it by hand...

moonshield
09-13-2004, 05:27 PM
jpeg does not support transparency but png and gif do.