Skip to main content
mauricior6328708
Inspiring
April 19, 2017
Answered

How to modify the resolution of a document with scripts?

  • April 19, 2017
  • 1 reply
  • 3533 views

Hello, greetings to all! It is possible a script that verifies if the document has resolution 200 DPI in pixels / Inch ...

If it is less than 200 DPI between "72 to 199 dpi", set to 200 DPI in pixels / Inch. Thanks in advance.

This topic has been closed for replies.
Correct answer Chuck Uebele

This will just change the resolution. It will not resize the image, if that's what you want.

var doc = activeDocument

if(doc.resolution<200){

    doc.resizeImage (undefined, undefined, 200, ResampleMethod.NONE)}

1 reply

Chuck Uebele
Community Expert
Chuck UebeleCommunity ExpertCorrect answer
Community Expert
April 19, 2017

This will just change the resolution. It will not resize the image, if that's what you want.

var doc = activeDocument

if(doc.resolution<200){

    doc.resizeImage (undefined, undefined, 200, ResampleMethod.NONE)}

mauricior6328708
Inspiring
April 19, 2017

It worked perfect! Thank you very much Chuck Uebele.