I’m unable to provide the full working code as you would have to have full access to our data model, but this is a simplified version what is happening.
using (PsdImage psdImage = (PsdImage)Aspose.PSD.Image.Load("/path/to/file"))
foreach (var layer in psdImage.Layers)
if (layer is TextLayer)
TextLayer textLayer = layer as TextLayer;
PngOptions pngOptions = new PngOptions();
pngOptions.ColorType = PngColorType.GrayscaleWithAlpha;
It’s worth noting, that this doesn’t occur when I comment out the line to update the text.