Make sure you use imagecreatetruecolor() with GD when resizing images or
you'll get some undesirable results. Imagemagick's convert and mogrify
worked well for me although I was resizing an uploaded image.

Ed Curtis


On Thu, 26 Feb 2004, Will wrote:

> Thanks!! I found some documentation on the GD library.
> I most likely be posting again!! :)
>
> ~WILL~
>
>
> [EMAIL PROTECTED] wrote:
> > gd seems to work fine ? even nconvert via command line does a good job and
> > it resizes gif too
> >
> >
> >>I'll second that one, I wrote a shell script in PHP to resize images,
> >>using ImageMagicks mogrify
> >>command, and it took ages.  It's really much too slow for a web site.
> >>
> >>If you need a faster solution, I think you have to buy something.
> >>
> >>On 26 Feb 2004, at 09:15, Adam Bregenzer wrote:
> >>
> >>
> >>>On Thu, 2004-02-26 at 02:25, Will wrote:
> >>>
> >>>>I forgot to mention what I was trying to do.
> >>>>There is a web page that pulls the image file name from the database
> >>>>then  reads the URL to the directory where the image is.  Is it
> >>>>possible
> >>>>to just resize it when the web page is brought up in the browser?
> >>>
> >>>I use ImageMagick's[1] convert[2] to do this.  It is not a PHP module
> >>>and must be run through exec[3].  Also, in my experience image
> >>>manipulation is rather time consuming, it is a good idea to cache
> >>>altered images so they do not have to be recreated on every page load.
> >>>
> >>>[1] http://www.imagemagick.org/
> >>>[2] http://www.imagemagick.org/www/convert.html
> >>>[3] http://www.php.net/exec
> >>>
> >>>--
> >>>Adam Bregenzer
> >>>[EMAIL PROTECTED]
> >>>http://adam.bregenzer.net/
> >>>
> >>>
> >>>--
> >>>PHP General Mailing List (http://www.php.net/)
> >>>To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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

Reply via email to