Re: [PHP] ImageMagik

2004-10-21 Thread Brian V Bonini
On Thu, 2004-10-21 at 14:07, Mag wrote:
> Hi,
> I have a requirment to dynamically brighten, darken or
> add/remove contrast from a thumbnail image, since I
> cannot do this in GD I was thinking of doing this in
> ImageMagik, but searching google I cannot find many
> tutorials and even visiting the image magik site i
> only see that it can be used with php but no examples
> were given.
> 
> Any idea of any classes that use imagemagik to do the
> above or you have any code taht does the above or can
> recommend some tutorials that do that above, please
> reply.

Your looking to use the mogrify component of ImageMagick

$ mogrify -contrast (to enhance)
$ mogrify +contrast (to reduce)

You could use one of PHP's program execution functions to call mogrify
as above.

exec('mogrify -contrast' . $image . '> /dev/null 2>&1 &');

or something like that..

-- 

s/:-[(/]/:-)/g


BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
==
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org
aGEhIGJldCB5b3UgdGhpbmsgeW91IHByZXR0eSBzbGljayBmb3IgZmlndXJpbmcgb3V0I
GhvdyB0byBkZWNvZGUgdGhpcy4gVG9vIGJhZCBpdCBoYXMgbm8gc2VjcmV0IGluZm8gaW
4gaXQgaGV5Pwo=

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] ImageMagik

2004-10-21 Thread Mag
Hi,
I have a requirment to dynamically brighten, darken or
add/remove contrast from a thumbnail image, since I
cannot do this in GD I was thinking of doing this in
ImageMagik, but searching google I cannot find many
tutorials and even visiting the image magik site i
only see that it can be used with php but no examples
were given.

Any idea of any classes that use imagemagik to do the
above or you have any code taht does the above or can
recommend some tutorials that do that above, please
reply.

Thanks,
Mag

=
--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ImageMagik

2002-04-18 Thread Miguel Cruz

On Thu, 18 Apr 2002, Richard Lynch wrote:
> I have used PHP to generate a series of JPEG files, which after doing:
> 
> convert -delay 0 *.jpg animated.gif
> 
> make a rather nifty animated GIF file.
> 
> Just one tiny problem...
> 
> How the heck do 8 files, ~24 K each, turn into 3 *MEGS* worth of
> animation?...

It's not unbelievable. JPEGs can be highly compressed, and expand to a lot 
of image data. Depending on the type of image, the GIF format might not be 
able to handle it very well.

I'm guessing the images are pretty large physically ( 100 or hundreds of
pixels in each dimension), correct?

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] ImageMagik

2002-04-17 Thread Richard Lynch

I have used PHP to generate a series of JPEG files, which after doing:

convert -delay 0 *.jpg animated.gif

make a rather nifty animated GIF file.

Just one tiny problem...

How the heck do 8 files, ~24 K each, turn into 3 *MEGS* worth of animation?...

I mean, I've read the GIF spec, and there just ain't that much there...

I've tried all the reasonable flags to convert I can find in "man" 
and Googled, but got nothing so far...

Please Cc: me...

And, I'm not being stupid, right?...  There's no PHP image_frame() 
right?...

Thanks.
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php