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

simple script for resizing a selected image

Community Beginner ,
Sep 30, 2021 Sep 30, 2021

Copy link to clipboard

Copied

hi everyone,

trying to find a faster way to proportionally resize the width of a selected image placed in a frame (the frame has specific dimensions, cannot use fit content etc). 

 

in my case: the frames have a 39mm width (height doesn't matter, it's relative). when i'm placing the image inside the frame, the image must have a 35mm width (with height proportionally resized).

 

i have to resize every placed image manually and i have thousands. it would really be a time saver for me to do this automatically by using a script. (i have macro keys on my keyboard/mouse so i can assign any shortcut to run this script).

TOPICS
Scripting

Views

572

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 , Oct 01, 2021 Oct 01, 2021

You can use Object Styles and assign a keyboard shortcut.

 

https://helpx.adobe.com/indesign/using/object-styles.html

 

 

Votes

Translate

Translate
Community Expert ,
Oct 01, 2021 Oct 01, 2021

Copy link to clipboard

Copied

You can use Object Styles and assign a keyboard shortcut.

 

https://helpx.adobe.com/indesign/using/object-styles.html

 

 

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
Community Beginner ,
Oct 01, 2021 Oct 01, 2021

Copy link to clipboard

Copied

thank you, i tried and it does not work with anchored frames (my frames are anchored inline with text frames).

i'm attaching a screenshot.

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
Community Expert ,
Oct 01, 2021 Oct 01, 2021

Copy link to clipboard

Copied

What do you mean it doesn't work? 

What way doesn't it work? 

 

I just tried with an Anchored Image and it works fine in terms of size and scaling.

 

Can you elabaorate? 

 

 

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
Community Beginner ,
Oct 01, 2021 Oct 01, 2021

Copy link to clipboard

Copied

it seems to work only with the frame, not with the image inside it.

- i copy paste my rectangle frame inside the text frame.

- i place the image inside the frame with ctrl+d

- i manually resize the width of the image at 35mm (this is what i need it done automatically somehow)

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
Community Beginner ,
Oct 01, 2021 Oct 01, 2021

Copy link to clipboard

Copied

LATEST

ok it works now, i was doing it the wrong way. now i place the image directly in the text frame and apply the object style. i didn't know that! thank you so much!

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
Community Expert ,
Oct 01, 2021 Oct 01, 2021

Copy link to clipboard

Copied

Screenshot 2021-10-01 at 08.50.03.pngScreenshot 2021-10-01 at 08.50.43.png

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