kensbeijing Posted January 29, 2009 Share Posted January 29, 2009 I am making a avatar thing for my website. Firstly the member would upload their picture, but I need some PHP coding to resize the image and crop it to a square shape and then save it. Is this possible? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 29, 2009 Share Posted January 29, 2009 Search the forum for resizing an image, I posted a function somewhere. You can modify the function to crop it if you want, imagecopyresampled is still the function to use for that. You just need to figure out the coordinates of the area you want to crop. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.