thebuzzmedia/imgscalr — pull request #81 by supersam654 (2012-12-25 22:18:08+00:00)
Title: Fixed issue with padding removing transparency (Again)

Due to a problem with git (that is probably related to line endings), I am resubmitting this pull request

--

Previously, the entire new image was filled with a background color and then the old image was drawn over it. This broke transparency because the background behind the image was being filled in.

Now, only the padded areas are filled in (in the form of 4, non-overlapping rectangles).

I tested this with a random set of images on my computer and everything worked fine. The average speed remained the same on the set of 145 images.

I did not run any formal tests because I don't know how and this is my first pull request (ever). Some help running the actual tests would be great!