Resize to maximum dimension preserving the aspect ratio.
Resize to maximum dimension preserving the aspect ratio. This is basically equivalent to what you would expect by setting "max-width" and "max-height" CSS attributes but will scale up an image if necessary
Remove alpha channel fix color error by replace transparent color by backgroundColor, fix for png image export
Remove alpha channel fix color error by replace transparent color by backgroundColor, fix for png image export
Algorithm adapted from example in Filthy Rich Clients http://filthyrichclients.
Algorithm adapted from example in Filthy Rich Clients http://filthyrichclients.org/ Resize an image and account of its orientation. This will not preserve aspect ratio.
Resize to a square Will preserve the aspect ratio of the original and than center crop the larger dimension.
Resize to a square Will preserve the aspect ratio of the original and than center crop the larger dimension. A image of (200w,240h) squared to (100) will first resize to (100w,120h) and then take then crop 10 pixels from the top and bottom of the image to produce (100w,100h)