$ 0 0 Changing the format from png24 to png32 should resolve your issue. Then you can leave the rest of the code the same. But please look at my remark about reading the image with the MagickReadSettings instead of resizing it.