JonnySnip3r Posted August 17, 2010 Share Posted August 17, 2010 Hey guys, i have been creating a profile page for a site i am doing. When i upload an image the profile image gets resized to 150px x 150px (CSS) however you can imagine if the image isnt a perfect size it will be squashed. Is there anyway i can resize the image? so that it doesnt look squashed like keep the full size upload image but pass it through a function before it displays in the profile section? if someone could point me in the right direction that would be awesome. Thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/210950-php-image-resizing-help/ Share on other sites More sharing options...
Adam Posted August 17, 2010 Share Posted August 17, 2010 Yeah, pretty easily with the GD library. There'll be plenty of information about on how to keep the aspect ratio too. Quote Link to comment https://forums.phpfreaks.com/topic/210950-php-image-resizing-help/#findComment-1100272 Share on other sites More sharing options...
JonnySnip3r Posted August 17, 2010 Author Share Posted August 17, 2010 Thanks dude!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/210950-php-image-resizing-help/#findComment-1100274 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.