Today I saw a post at digg.com on image resizing with PHP and there was quite a discussion. Let me share the laziest way (that I know of) how to do it - PEAR::Image_Transform is all it takes. Here goes: <?php require_once 'Image/Transform.php'; $i =& Image_Transform::factory(''); $i->load('test.jpg'); $i->fit(100,100); $i->save('resized.png', 'png'); ?> In addition, the Image_Transform library off
![Laziest image resize in PHP](https://cdn-ak-scissors.b.st-hatena.com/image/square/2ed40af5a23be983f27fa8b582222aea5e129542/height=288;version=1;width=512/http%3A%2F%2Fwww.phpied.com%2Fwp-content%2Fuploads%2F2017%2F11%2F94lxJ2Cz_400x400.jpg)