Resize images with white background using gdn_uploadimage->saveImageAs()

Hey guys I'm trying to use the method saveImageAs() to resize an image and add a white background to it.
Right now it can upload an image just fine, and resize it and can also crop it.
But lets say I want a squared image of 500x500 and I have an image of 300x600
I want to resize that image down to 200x500 and then add a white backgrond to it to make it 500x500

Anyone know how to do that or modify that method to do it?

Tagged:

Comments

Sign In or Register to comment.