i tried to post this to "article requests" but somehow posts do not appear there...
Hi guys maybe you remember there was article "Image resizing with PHP and Mogrify". I quickly wrote same thing with PHP/GD and now have rewritten it to be OOP and added some features.
There are lots of resizing options, you can output image to file or directly to the browser. There is online demo on my site.
I have described the class here:
http://horobey.com/demos/imgresize/v5/article/
Please visit this page and tell me if you would like to see it as an article on PHPBuilder.
I need some editing/proofreading help too.
You are welcome to send suggestions to
yg108@softhome.net
Best regards,
Yuriy Horobey.
<?PHP
require("hft_image.php");
$img = hft_image("mypicture.jpg");
$img->resize(150,150, "-");
$img->output_resized("mythumbnail.jpg"); // left blank to output to browser
?>
or like this:
<img src="resizer.php?img=picture01.jpg&w=150&h=150">