Image dpi not preserved when converting to psd

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

Hi @Donato381
Thank you for using Aspose.Imaging.
I am going to check it out.

@Donato381
Inform you, that an issue #IMAGINGNET-6117 has been created.

@Donato381
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): IMAGINGNET-6117

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.