[TECH-SUPPORT] LPS-17687 Thumbnail for .gif files is distorted

Hey Roberto,

This seems to be an old issue, which still affects master. The main problem was how transparent pixels were handled. We assumed that the pixel at (0,0) was transparent which is a wrong supposition.

I reimplemented method scale() based on Oracle's recommendations: http://www.oracle.com/technetwork/java/index-137037.html#Q_How_do_I_create_a_resized_copy

Please let me know if you have any concerns.

Cheers,
László