We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TIFF to PNG conversion does not work

Hello,
I try to convert image to PNG format I found case when conversion between TIFF and PNG failed. Other output formats are perfectly fine also I try other TIFF files and also do not have problems with that.

Here is code snippet which I use

Image image = Image.load("Picture1.tiff");
image.save("result.png"); //invalid result
image.save("result.jpeg"); //ok
image.save("result.bmp"); //ok
image.save("result.tiff"); //ok

And here file which cannot be converted to PNG: Picture1.zip (15.8 KB)

I use version 22.2 of aspose-imaging

@PROCUREMENT2, please specify color mode for png to save TrueColorWIthAlpha image.Save(@“result.png”, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha }); , for us on version 22.9 all worked OK if specify correct color mode, by default when save to png used TrueColor mode.

Thanks confirmed it works with this color type.