Possible fix for #664

#664: "Converting transparent GIF to PNG can lead to further processing errors"

Is this the right thing to test?

Is this the right kind of fix?

The test fails before the fix and passes afterwards.