Hello,
I am opening a .psd file which is in 300 DPI. Now I am loading two files in separate layers in this file. The two files are also in 300 DPI.
I am using following code to save the file but I think I am missing something because of which the DPI of the saved file get set to 72. I checked this with IrfanView as well as Photoshop.
ieMain.LayersMergeFilter := rfLanczos3;
ieMain.IO.Params.JPEG_Quality := 100;
if optCMYK.Checked then
begin
ieMain.IO.Params.JPEG_ColorSpace := ioJPEG_CMYK;
ieMain.IEBitmap.ColorProfile.Assign_CMYKProfile();
end
else
begin
ieMain.IO.Params.JPEG_ColorSpace := ioJPEG_RGB;
ieMain.IEBitmap.ColorProfile.Assign_AdobeRGB1998();
end; //if optCMYK.Checked then
ieMain.IO.Params.DpiX := 300;
ieMain.IO.Params.DpiY := 300;
ieMain.IO.Params.Dpi := 300;
ieMain.LayersSaveMergedTo('TestFile.jpg');
How to solve this problem?
TIA
Yogi Yang