Hi guys
It’s come to our attention that the conversion process to PSD doesn’t preserve the original image’s dpi. We’ve tried to force it by setting the ResolutionSettings, but that doesn’t seem to work either.
Here is the code we’re using:
using (PngImage image = (PngImage)Aspose.Imaging.Image.Load(filePath)) { var psdOptions = new PsdOptions(); psdOptions.ResolutionSettings = new ResolutionSetting(image.HorizontalResolution, image.VerticalResolution); image.Save(psdPath, psdOptions); }
testImgs.zip (8.5 MB)
I’ve attached the test image and the resulting PSD image. You’ll note the input image has a 300 dpi, while the PSD has a 72dpi.
We’ve tested with other output formats like Tiff and those seem to convert correctly, so it appears to be an issue specific to PSD.
Thanks