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

Free Support Forum - aspose.com

With Smart Objects,warp is not work!

With Smart Objects,You can scale, rotate, skew, distort, perspective transform a layer, but warp!
if you replace the contents, the warp can’t be successed.
截屏2021-11-11 下午12.11.19.jpg (187.1 KB)

但奇怪的是智能对象的warp操作信息并没有丢失,它只是因为置换进去的图片格式错误,而无法正确应用!

如果这时候你在photoshop中打开这个编辑好的psd文件,再去手动替换一下智能对象的内容,他是可以无损置换到另一张图片上去的!

我的代码是:
ByteArrayOutputStream stream = new ByteArrayOutputStream();
new_innerImage.save(stream); //栅格化图层innerImage存入流stream中
smartObjectLayer.setContents(stream.toByteArray()); //流stream转数组,然后设置为智能对象的内容

Hello,

You are right. Aspose.PSD hasn’t support rendering of warp transformations yet, but it doesn’t damage data. We planned warp transformation in 22.03, you can track this issue by the following id: PSDNET-1030. Support Warp Transformation in Smart Object

Thank you for your feedback, we will do everything possible to implement this feature faster.

Automatic translate:

你好,

你是对的。 Aspose.PSD 尚不支持warp 变换的渲染,但它不会损坏数据。我们计划在 22.03 中进行扭曲转换,您可以通过以下 ID 跟踪此问题:PSDNET-1030。支持智能对象中的扭曲变换

感谢您的反馈,我们将尽一切可能更快地实现此功能。

thanks a lot!
hope the good news :smiling_face_with_three_hearts: