howie2007 Posted November 11, 2007 Share Posted November 11, 2007 Hi Guys, Is it possible to upload images and have them resized(thumbnailed) to exact dimensions without the aspect ratio being maintained (ie proportioned) e.g. if I want to resize a 1000px (H) x 800px (W) image to 250px (H) x 222px (W) can it be done exactly to that dimension without being resized down to 250x200 i.e preserving the aspect ratio (1000/800x250=200px) Please advise. Thanks very much! Quote Link to comment https://forums.phpfreaks.com/topic/76844-image-resizing-to-exact-dimensions/ Share on other sites More sharing options...
redbullmarky Posted November 11, 2007 Share Posted November 11, 2007 imagecopyresized / imagecopyresampled should do the trick. http://uk2.php.net/imagecopyresized http://uk2.php.net/imagecopyresampled edit oops meant imagecopyresized, not imagecopy. Quote Link to comment https://forums.phpfreaks.com/topic/76844-image-resizing-to-exact-dimensions/#findComment-389040 Share on other sites More sharing options...
howie2007 Posted November 11, 2007 Author Share Posted November 11, 2007 Thanks RedBullMarky - Wow that was quick! Quote Link to comment https://forums.phpfreaks.com/topic/76844-image-resizing-to-exact-dimensions/#findComment-389041 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.