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

simple script for resizing a selected image

Community Beginner ,
Sep 30, 2021 Sep 30, 2021

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
1.6K
Translate
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

 

 

Translate
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

 

 

Translate
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

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.

Translate
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

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? 

 

 

Translate
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

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)

Translate
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
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!

Translate
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

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

Translate
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