Re: Re: Image resize on upload
| From: | Ed Curtis | Date: | Thu, 26 Feb 2004 13:15:56 +0000 |
| Subject: | Re: Re: Image resize on upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178937@lists.php.net to get a copy of this message | ||
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~
>
>
> daniel@electroteque.org 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
> >>>adam@bregenzer.net
> >>>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
>