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

Free Support Forum - aspose.com

Image quality issues when resizing Smart Object

Firstly, I’ll add the caveat that I’m using Aspose.PSD via .NET 6 on macOS, using mono-libgdiplus, in case that makes a difference.

I’m wanting to replace a PNG in a Smart Object with another PNG. Both have alpha transparency and are large - over 1,000px. The image is hosted on top of another layer, that has a dark background.

In Photoshop, resizing the layer results in a perfect overlay. In Aspose.PSD, the result is very jagged.

I’m using code similar to:

smartObjectLayer.ReplaceContents(pathToNewImage);
smartObjectLayer.ResizeHeightProportionally(200);

I’ve tried adding various ResizeType options to no success.

You can see an example of how bad the result is below (the logos are the objects being resized)

image.jpg (91.5 KB)

I have noticed many threads about losing quality after a resize. I can’t find a good solution to this, however.

How can I make it closer to the quality provided by Photoshop’s native resize capabilities?

Thanks in advance.

@leebenson,

Could you provide files and code that can help reproduce this issue?
This can help find a solution.