How can I pad an image with CodeIgniter?

Posted by Shamoon on Stack Overflow See other posts from Stack Overflow or by Shamoon
Published on 2010-03-06T21:19:49Z Indexed on 2010/03/09 1:51 UTC
Read the original article Hit count: 492

My user is uploading an image of any size XX x YY. I want to find the larger dimension and shrink the image to a square of 250x250 with transparent padding being added to make up the difference. Is there any way to accomplish this with CI's Image Lib?

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about image-manipulation