watermark on image

Started on the old forum in November 2011 · view the original in the archive · old links redirect here

3 replies · 795 views · started 15 years ago · 1 min read

3 participants
GumSlone Administrator Principal · 1,690 posts #2

you can do it this way:

$watermark = @imagecreatefrompng('./watermark.png');           $imagewidth = imagesx($file);           $imageheight = imagesy($file);           $watermarkwidth = imagesx($watermark);           $watermarkheight = imagesy($watermark);           $startwidth = (($imagewidth - $watermarkwidth)/1);           $startheight = (($imageheight - $watermarkheight)/1);           imagecopy($file, $watermark, $startwidth, $startheight, 0, 0, $watermarkwidth, $watermarkheight);           imagedestroy($watermark);

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close