acctman Posted August 23, 2008 Share Posted August 23, 2008 Hi does anyone have a code sniplet of thumbnailing an image with ImageMagick and keeping it with the aspect ratio? I want to do a max width of 190px with a max height of 125px and save the file to tn_fileName.jpg thanks in advance Link to comment https://forums.phpfreaks.com/topic/121034-imagemagick-thumbnailing-with-aspect-ratio/ Share on other sites More sharing options...
acctman Posted August 24, 2008 Author Share Posted August 24, 2008 i was able to find a command line code but i need something for php Link to comment https://forums.phpfreaks.com/topic/121034-imagemagick-thumbnailing-with-aspect-ratio/#findComment-624125 Share on other sites More sharing options...
acctman Posted August 24, 2008 Author Share Posted August 24, 2008 this is the command line I came up with convert large.jpg -auto-orient -strip -thumbnail 190x125 tn_small.jpg i'm not sure if that will keep it with an aspect ratio with the Height being 120px and Width being up to 190px and it needs to be in php Link to comment https://forums.phpfreaks.com/topic/121034-imagemagick-thumbnailing-with-aspect-ratio/#findComment-624395 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.