var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
I've looked on hotscripts, and the only ones i found didn't work for me.
Does anyone know an uploader, or at least a program that will automatically insert a PNG watermark i have made to my images?
I took about 400 pictures I want to post up on my website and it would be a pain to insert them all in manually via photoshop.
Could anyone please direct me towards an upload script or a program that will do this for me?
I'd like a free one, but I'd pay $20, maybe $30 for it.
well i guess my questions are
-1 are you trying to do it live off the fly via php and gd (look at a php info file to make sure everythings all good)
-2 good luck man cause my brain just farted
- Full service website development solutions since 2001.
(612)234-2768 - Locally owned and operated in the Minneapolis, Minnesota area.
A quick search on Google for "
PNG Watermarking Script PHP " found me the answer in under a minuite. The very first result contains the following script, which could easily be edited to accept a list of images and cycle through each one, saving it:
header ( 'content-type: image/jpeg' );
$watermark = imagecreatefrompng ( 'watermark.png' );
$watermark_width = imagesx ( $watermark );
$watermark_height = imagesy ( $watermark );
$image = imagecreatetruecolor ( $watermark_width , $watermark_height );
$image = imagecreatefromjpeg ( $_GET [ 'src' ]);
$size = getimagesize ( $_GET [ 'src' ]);
$dest_x = $size [ 0 ] - $watermark_width - 5 ;
$dest_y = $size [ 1 ] - $watermark_height - 5 ;
imagecopymerge ( $image , $watermark , $dest_x , $dest_y , 0 , 0 , $watermark_width , $watermark_height , 100 );
imagejpeg ( $image );
imagedestroy ( $image );
imagedestroy ( $watermark );