Fix for #97
Chris Reuter
Branch: suetanvil/gd-libgd:scale-palette-image-bug
Branch: libgd/gd-libgd:master
Merged
Merged pull request
Merged in suetanvil/gd-libgd/scale-palette-image-bug (pull request #16)
Merged in suetanvil/gd-libgd/scale-palette-image-bug (pull request #16)
gdImageScale()'s FP code only works on truecolor images but did not check for them. Now, it converts the source to truecolor if it is not.
Also added a test case to exercise all of the scaling modes.