Could you please write me what’s Aspose.PSD Version is used In your example?
Could you please provide the source file PS模板2.psd
We need to make an investigation, and additional information will be useful.
Was created an issue: PSDNET-1028. After the replacement of a smart object in the PSD, the starting transformation (complex smart object deformation) is lost.
@rofeya we are working on Smart Objects’ features and transformations, before we can start work on this task, we need to finish adding of the Correct Smart Object Transformation Rendering. It’s possible that Aspose.PSD team will fix this issue in Release 23.2-23.3
@rofeya it’s possible that the issue has been fixed in Aspose.PSD for .Net 23.2 already. But we didn’t check it on your example. Also, we are working on the release of Aspose.PSD for Java. It will be released in 1-2 months.
If you want to check it by yourself in .Net, please try to load psd files with this property AllowWarpRepaint = true
Here is example from our Aspose.PSD Release notes.
string sourceFile = "source.psd";
string pngWarpedExport = "warped.png";
string psdWarpedExport = "warpFile.psd";
var warpLoadOptions = new PsdLoadOptions() { AllowWarpRepaint = true };
using (var image = (PsdImage)Image.Load(sourceFile, warpLoadOptions))
{
image.Save(pngWarpedExport, new PngOptions());
image.Save(psdWarpedExport, new PsdOptions());
}