Hi, I am resizing the images using the below steps. 1. Open image with the resolution 600. 2. reducing the resolution to 120 using imageresize menu. These steps am doing using the below steps using code. var highResolution = 600, imgResolution = 120 var pdf = File.openDialog("Choose a PDF File"); var doc = psFileOpen(pdf, ".pdf"); doc.trim(TrimType.BOTTOMRIGHT); doc.trim(TrimType.TOPLEFT); docresizeImage(null,null,imgResolution,ResampleMethod.BICUBIC); // Resize the image to the resolution 120 function psFileOpen(fileName, fExt) { var OpnOpts = null, doc = null; if(File(fileName).exists) { if(fExt == ".eps") { try{ OpnOpts = new EPSOpenOptions(); OpnOpts.antiAlias = true; OpnOpts.constrainProportions = true; OpnOpts.cropPage = CropToType.ARTBOX; OpnOpts.resolution = highResolution; OpnOpts.mode = OpenDocumentMode.RGB; OpnOpts.bitsPerChannel = BitsPerChannelType.EIGHT; //doc = app.open(File(fileName), OpnOpts, true); doc = app.open(File(fileName), OpnOpts); }catch(e){doc = null;} }else if(fExt == ".pdf" || fExt == ".ai") { try{ OpnOpts = new PDFOpenOptions() OpnOpts.antiAlias = true; OpnOpts.constrainProportions = true; OpnOpts.cropPage = CropToType.ARTBOX; OpnOpts.resolution = highResolution; OpnOpts.mode = OpenDocumentMode.RGB; OpnOpts.bitsPerChannel = BitsPerChannelType.EIGHT; //doc = app.open(File(fileName), OpnOpts, true); doc = app.open(File(fileName), OpnOpts); }catch(e){doc = null;} }else{ try{ doc = app.open(File(fileName)); }catch(e){doc = null;} } return doc; }else{ return null; } } But having difference in the image quality. How to avoid this.. Please see my screenshots. Open with the Resolution 600 (Manual) Reduce the Resolution to 120 (Manual) Output (Manual) Output in Automation (Using the above Code) How to resize the image from one resolution to another resolution without changing the quality. I don't know my method is right? Because there is no issue when it done by manual. Then same way i want to do it using code... Thanks, Sudha K
... View more