Hi!
We are using Aspose.PSD 22.7.0 update text in some PSD files. In some cases the resulting file looks wrong in Photoshop (has bigger characters) until it is focused, and looks as in the original afterwards.
For example, if we use the code below, with file1.psd from the attached zip, we will get such a file (file1.psd-target.psd from the zip).
AsposeLicenser.LoadLicense();
using (var image = Image.Load(file))
{
if (image is PsdImage psdImage)
{
foreach (var layer in psdImage.Layers)
if (layer is TextLayer textLayer)
textLayer.TextData.UpdateLayerData();
var imageOptions = new PsdOptions(psdImage);
psdImage.Save(file+"-target.psd", imageOptions);
}
}
It would be nice to have the text look as it should without opening the psd file and focusing the text layer.
files.zip (89.6 KB)
Thanks for any help,
Arnold