uisneach Posted February 24, 2009 Share Posted February 24, 2009 Hello My aim is to resize pics for ex. 120x90 ,(or 100x70)no matters Anyway, i am not a php programmer , but i understand thebasis i found this free script on the net that partially satisfy my aim. list($width, $height, $type, $attr) = getimagesize($_SERVER['DOCUMENT_ROOT'].'public/foto/'.$ultimo_id.'.jpg'); // Create version "120*90" of picture(thumbnail) $thumb = imagecreatetruecolor(120, 90); $source = imagecreatefromjpeg($_SERVER['DOCUMENT_ROOT'].'public/foto/'.$ultimo_id.'.jpg'); imagecopyresized($thumb, $source, 0, 0, 0, 0, 120, 90, $width, $height); the result is that the quality of thumb is not amazing, and i can only resize horizontal image. Has anyone of you experts any clue to how resize in better quality (probabily using % instead of fixed dataof width) starting from only a data fixed (height)? in which way i might resize also the vertical images? Thx in advance to all Quote Link to comment https://forums.phpfreaks.com/topic/146668-vertical-thumbresizing-and-quality-issue/ Share on other sites More sharing options...
JonnoTheDev Posted February 24, 2009 Share Posted February 24, 2009 Using imageMagick via an exec() command http://www.imagemagick.org/script/index.php Quote Link to comment https://forums.phpfreaks.com/topic/146668-vertical-thumbresizing-and-quality-issue/#findComment-770239 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.