Page 1 of 1
					
				Canvas Size
				Posted: Sat Jan 21, 2012 8:10 pm
				by interactbooks
				Hopefully this is a relatively easy request.  I am trying to write code that would open a PNG file, resize the canvas of the file and then save the file with the new canvas size. I do not want to scale the image I just want to increase the canvas size.  Thanks in advance!
			 
			
					
				Re: Canvas Size
				Posted: Sun Jan 22, 2012 8:05 am
				by interactbooks
				Answered my own question was pretty simple, just use the CROP command:
Code: Select all
 
crop image "image" to the rect of this card
export image "image" to file "/testimage.png" as png
 
			
					
				Re: Canvas Size
				Posted: Mon Jan 23, 2012 12:57 am
				by raulvelazquez
				This will help me.
Thanks!