Subject: | Losing alpha channel info on resize |
As per GD docs - https://metacpan.org/module/GD#Alpha-channels - you should call $image->saveAlpha(1) and $image->alphaBlending(0) to preserve the alpha channel info.
Calling these on an original image is not enough, but I tried added them into resize() method (line 52-53), and it fixes the issue.