Re: AW: image resizing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Imagemagick is THE preferred sollution, since downsizing
images makes them blurry. With imagemagick you can sharpen
then afterwards, and they are brand new shiny funky thumbs!

There is a tutorial on phpbuilder.com which describes and shows
a live example on how to incorporate the ImageMagick power
into your scripts. You do however need to install the ImageMagick
module on the server (windows is easy, hust depack the files and
point to migrify.exe, no need to install it its just a bunch of DLLs).
If your hosting provider doesnt want to install ImageMagick, you
have to use GD. Nice class for GD just released on phpclasses.org
by the way. You need however to reprogram some og the scaling
functions, as they are a bit "unfinnished".

I use GD as a "backup", in case ImageMagick isnt present on
the server. But then I get those blurry ones I dont like...

-- 
Kim Steinhaug
---------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---------------------------------------------------------------


"Christopher Ostmo" <tech@xxxxxxxxxxxx> wrote in message
news:3B4E320D.19516.1F8645B8@xxxxxxxxxxxx
> Stefan Siefert pressed the little lettered thingies in this order...
>
> > There are several possibilities to do this... first PHP has the
possibility
> > to use the GD - Libs (which doesn't support Gif's because of licence
> > problems). The second (and in my opinion better) posibility is
ImageMagick
> > which are some programs to modify pictures (you have to call them
externaly
> > from your php - scripts) (www.imagemagick.org). I think, I have seen
several
> > Tutorials to do so (PHP/ImageMagick) but on the fly.. I don't find them
in
> > my bookmarks now...
> >
> > Hope this helps,
> >
> > Stefan Siefert
> >
> > -----Ursprungliche Nachricht-----
> > Von: Adv. Systems Design [mailto:asd_2000@xxxxxxxxx]
> > Gesendet: Montag, 9. Juli 2001 16:04
> > An: php-db@xxxxxxxxxxxxx
> > Betreff:  image resizing
> >
> >
> > Is there a way of sizing image resolution on the fly?
> >
> > TIA
> >
>
> If you have ImageMagick, you only need to use the mogrify command:
> exec("/usr/local/bin/mogrify -geometry 300x300 image.jpg");
>
> This isn't built in to PHP, but it works very well if you have access to
it.
>
> Christopher Ostmo
> a.k.a. tech@xxxxxxxxxxxx
> AppIdeas.com
> Innovative Application Ideas
> Meeting cutting edge dynamic
> web site needs since the
> dawn of Internet time (1995)
>
> For a good time,
> http://www.AppIdeas.com/

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux