Resize takes a given image and creates a copy with a new given size. The class can keep proportions of the original image upon setting a given width or height. A watermark image can also be overlaid over one of the resized image's corners or its center.
The final image may also be rotated by a given angle. The background color of the image regions that may become empty is configurable.
PHP 5.0 or higher
The comments in the code are in Portuguese