Moan + PHP Tip, was: [thelist] blank messages
Andrew Forsberg
andrew at thepander.co.nz
Sat Nov 24 18:51:04 CST 2001
>I haven't no.
Can we please kill this thread right here? Send this sort of thing to
Dan offlist.
<tip type="image resizing with PHP">
If your PHP host is not prepared to recompile PHP with GD, and you
want to do some fancy on-the-fly image resizing, have a look into the
features of NetPBM. The sparse home page is at:
http://netpbm.sourceforge.net/
There are precompiled binaries for a few platforms, which is handy
for the above situation, since you won't be able to get any compile
time on your host will you? It makes resizing images with PHP as easy
as:
exec ("/dir/to/jpegtopnm /your/jpeg/file.jpg |
/dir/to/pnmscale -xsize $whateverwidthyoulike |
/dir/to/ppmtojpeg > /your/output/file.jpg");
Fast, and highly recommended.
</tip>
--
Andrew Forsberg
---
uberNET - http://uber.net.nz/
the pander - http://thepander.co.nz/
More information about the thelist
mailing list