• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to modify the resolution of a document with scripts?

Engaged ,
Apr 18, 2017 Apr 18, 2017

Copy link to clipboard

Copied

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.

Screenshot_1.jpg

TOPICS
Actions and scripting

Views

3.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 18, 2017 Apr 18, 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)}

Votes

Translate

Translate
Adobe
Community Expert ,
Apr 18, 2017 Apr 18, 2017

Copy link to clipboard

Copied

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)}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

LATEST

It worked perfect! Thank you very much Chuck Uebele.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines