Page 1 of 1

psd files

Posted: 2007-03-28T15:07:00-07:00
by BWT
I am generating different resolution psd files from a high res psd file with this command

img.convert("D:\test.psd", "-limit", "memory", "512", "-limit", "map", "2048", "-strip", "-units", "PixelsPerInch", "-resample", "120x120", "-depth", "8", "D:\test_120.psd")

I specify the resolution, however the generated file has 72 dpi when viewed in photoshop and there is no dpi/resolution information in other viewers (like irfan viewer). When generating jpg, tif, and eps files I did not have this problem with this command.
Any suggestions?

Re: psd files

Posted: 2007-03-28T16:20:44-07:00
by anthony
As a guess Photoshop probably only uses its own special profile info when looking at PSD files.

Anyone know for sure?

Re: psd files

Posted: 2007-04-02T10:11:31-07:00
by BWT
Actually, even without Photoshop if I resample a PSD file from 300 dpi to 120 dpi and strip the profile, Image Magick reads the output file's resolution wrong as "72 Undefined". If I don't strip the profile it reads it wrong again as "300" (just like the source file)

img.convert("D:\test\test.psd", "-strip", "-units", "PixelsPerInch", "-resample", "120x120", "D:\test\test_120.psd")
img.Identify("-format", "%x", "D:\test\test_120.psd")

Any sugestions how to resample a PSD? Other file type outputs like JPEGs and TIFs don't have this problem.
Thanks.