> 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
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,
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
--
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
>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
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
%
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.
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
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
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
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
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
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
13 matches
Mail list logo