I’m evaluating Aspose PSD prior to purchase and we see some PSD files fail to output to png. We need to make sure it will work before purchasing.
The code that fails is image.save(outputFileStream, outputOptions); where outputOptions is:
PngOptions pngOptions = new PngOptions();
pngOptions.setColorType(PngColorType.TruecolorWithAlpha);
The stack trace looks like this:
class com.aspose.psd.internal.Exceptions.InvalidOperationException: Current is not valid
com.aspose.psd.system.collections.Generic.Dictionary$Enumerator.b(Unknown Source)
com.aspose.psd.system.collections.Generic.Dictionary$Enumerator.next(Unknown Source)
com.aspose.psd.internal.jm.a.a(Unknown Source)
com.aspose.psd.internal.jm.a.a(Unknown Source)
com.aspose.psd.internal.jm.a.a(Unknown Source)
com.aspose.psd.internal.jm.a.a(Unknown Source)
com.aspose.psd.fileformats.psd.layers.filllayers.a$a.a(Unknown Source)
com.aspose.psd.fileformats.psd.layers.filllayers.a.a(Unknown Source)
com.aspose.psd.fileformats.psd.layers.filllayers.a.loadPartialArgb32Pixels(Unknown Source)
com.aspose.psd.internal.gL.ba.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.aB.a(Unknown Source)
com.aspose.psd.RasterImage.a(Unknown Source)
com.aspose.psd.RasterImage.loadArgb32Pixels(Unknown Source)
com.aspose.psd.internal.iJ.d.a(Unknown Source)
com.aspose.psd.internal.iN.c$a.a(Unknown Source)
com.aspose.psd.internal.iN.c$a.a(Unknown Source)
com.aspose.psd.internal.iN.c$a.process(Unknown Source)
com.aspose.psd.internal.iS.G.a(Unknown Source)
com.aspose.psd.internal.iS.G.process(Unknown Source)
com.aspose.psd.internal.iS.m.process(Unknown Source)
com.aspose.psd.internal.iJ.b.loadPartialArgb32Pixels(Unknown Source)
com.aspose.psd.internal.gL.ba.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.iO.c.b(Unknown Source)
com.aspose.psd.internal.iO.c.a(Unknown Source)
com.aspose.psd.internal.iN.c$d.a(Unknown Source)
com.aspose.psd.internal.iN.c$d.process(Unknown Source)
com.aspose.psd.internal.iN.c$c.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.iN.c$b.loadPartialArgb32Pixels(Unknown Source)
com.aspose.psd.internal.gL.ba.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.bc.a(Unknown Source)
com.aspose.psd.internal.gL.aB.a(Unknown Source)
com.aspose.psd.RasterImage.a(Unknown Source)
com.aspose.psd.RasterImage.loadPartialArgb32Pixels(Unknown Source)
com.aspose.psd.internal.iH.h.a(Unknown Source)
com.aspose.psd.internal.iH.h.a(Unknown Source)
com.aspose.psd.internal.hh.o.a(Unknown Source)
com.aspose.psd.internal.hh.q.a(Unknown Source)
com.aspose.psd.internal.hh.h.b(Unknown Source)
com.aspose.psd.internal.hh.h.export(Unknown Source)
com.aspose.psd.Image.a(Unknown Source)
com.aspose.psd.RasterImage.a(Unknown Source)
com.aspose.psd.u.a(Unknown Source)
com.aspose.psd.internal.gJ.b.a(Unknown Source)
com.aspose.psd.internal.gJ.c.a(Unknown Source)
com.aspose.psd.Image.save(Unknown Source)