Re: [PHP] Re: Write on image in faint color

2003-12-11 Thread Ryan A
> And because I'm such a nice guy: > #!/usr/bin/php > //remember the trailing slash > $dir = '/path/to/files/'; > $text = 'www.example.com'; > $fontsize = 2;//1 - 5 > $dh = opendir($dir); > while(false !== ($file = readdir($dh))) { > if($file[0] != '.') { > echo 'Adding watermark to

Re: [PHP] Re: Write on image in faint color

2003-12-11 Thread David T-G
Justin -- ...and then Justin Patrin said... % % Al wrote: % % >The closest thing out there at the moment (that I know of) is a PHP % >extension available through PECL, the PHP extension library. According to ... % % Or, as was said long ago in this thread, you just use the PHP GD % extension,

Re: [PHP] Re: Write on image in faint color

2003-12-11 Thread Justin Patrin
Justin Patrin wrote: imagepng($ih, $dir.basename($file, $fileinfo['extension']).'png'); Oops, the above line should probably be: imagepng($ih, $dir.'-watermark'.basename($file, $fileinfo['extension']).'png'); so as not to trample your previous files (if any are pngs). -- paperCrane --

Re: [PHP] Re: Write on image in faint color

2003-12-11 Thread Justin Patrin
Al wrote: 4) I'd love to see a PEAR IM module a la PerlMagick (but I haven't even looked yet, so please don't flame me for missing something obvious). One of these days I'll have The Great Rewrite and that will go in then. I'd love to be rid of the system() calls to convert and mogrify. The cl

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread Al
>4) I'd love to see a PEAR IM module a la PerlMagick (but I haven't even >looked yet, so please don't flame me for missing something obvious). One >of these days I'll have The Great Rewrite and that will go in then. I'd >love to be rid of the system() calls to convert and mogrify. The closest th

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread David T-G
Dave, et al -- ...and then David O'Brien said... % % I just did something similar to what you are asking to do % I created a mask.png in photoshop with white text at 50% opacity saying % what I wanted A good start. % Then I used the ImageMagick composite command line program thru a system %

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread David O'Brien
I just did something similar to what you are asking to do I created a mask.png in photoshop with white text at 50% opacity saying what I wanted Then I used the ImageMagick composite command line program thru a system call "composite mask.png image.png image.png" to make the new watermarked images.

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread David T-G
Ryan, et al -- ...and then Ryan A said... % % I did want to check out what Al wrote but got scared as he mentioned "steep % learning curve" 1) He actually meant shallow; there is, indeed, a lot to learn with IM. 2) IM is truly fantastic, and we use it for our gallery application; we generate th

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread Ryan A
OTECTED]> Cc: "Galen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 4:18 PM Subject: Re: [PHP] Re: Write on image in faint color > Ryan A wrote: > > > Hey, > > Thanks for the heads up but I have a heck of a lot of images and

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread Marek Kilimajer
Ryan A wrote: Hey, Thanks for the heads up but I have a heck of a lot of images and the site has pretty good traffic so I cant afford to do this on the fly, I was looking for something where you just drop all the images into a folder, run the script and pick it up in the output folder all ready fo

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread Ryan A
Hey, Thanks for the heads up but I have a heck of a lot of images and the site has pretty good traffic so I cant afford to do this on the fly, I was looking for something where you just drop all the images into a folder, run the script and pick it up in the output folder all ready for the web. I di

Re: [PHP] Re: Write on image in faint color

2003-12-10 Thread Galen
It's not that hard, no imagemagick functions required! Use imagecopy (part of image functions, built into PHP GD stuff) and a nice 32 bit PNG image with the opacity exactly the way you like. Browse the PHP manual for more docs on the exact code, there are lots of examples. I found it didn't lik

[PHP] Re: Write on image in faint color

2003-12-09 Thread Al
There's a command line, open-source utility called ImageMagick (http://www.imagemagick.org/) available for all major platforms that allows you to do lots of powerful image manipulation on one file, or one thousand. You crop, scale, rotate, colour, draw on, place text over, compose, transform and cr