PNG does not support bilevel (1 bit per pixel) images, but you are converting to a bilevel image before saving.
Try ConvertImage.save("test.png","png"); instead of the last 2 lines ?
PNG does not support bilevel (1 bit per pixel) images, but you are converting to a bilevel image before saving.
Try ConvertImage.save("test.png","png"); instead of the last 2 lines ?
Bookmarks