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

moving/scaling many images within frames

Community Expert ,
Feb 11, 2010 Feb 11, 2010

Copy link to clipboard

Copied

g'day

we produce dozens of school yearbooks and we are looking to streamline the process. one part in particular is producing the yearbook school photos. i'm working on a solution which involves using this script by Loic Aigon to quickly create a datamerge from a folder of photos:

http://www.scriptopedia.org/index.php?post/ImagesToCSV.html

using datamerge to merge multiple records, this makes everything fairly smooth until the pictures come in. the photos need the head and shoulders of the student, but the photos which are often supplied have more than this. it'd be nice to have a script which would allow all the images within the frames to move/scale to options available within a dialog box.

i have done a search of the forums and this thread was VERY close to what i'm after

http://forums.adobe.com/message/1924638

except there needs to be a dialog box which has options to manipulate the offset/scale. the script would be used by designers with no scripting experience, so asking them to go into notepad and adjust the offsets etc in there would confuse them.

everything else from that point on is a piece of cake i.e. there is a GREP to change the student's names (if need be).

thank you very much.

colin

ps: the script doesn't have to be an applescript like the above thread, a javascript would be just as good

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
TOPICS
Scripting

Views

2.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

LEGEND , Feb 16, 2010 Feb 16, 2010

How's this?

http://in-tools.com/downloads/indesign/scripts/ScaleImages.zip

Harbs

Votes

Translate

Translate
Community Expert ,
Feb 15, 2010 Feb 15, 2010

Copy link to clipboard

Copied

i've been doing a little more research in the forums and came across this gem by harbs:

http://forums.adobe.com/message/2208538#2208538

its SO CLOSE to what i'm trying to achieve but not quite there!

the script in that thread is:

  myGraphics = app.activeDocument.allGraphics;
  for (idx = 0; myGraphics.length > idx; idx++) {
   if(myGraphics[idx].constructor.name!="Image"){continue}
   myGraphics[idx].horizontalScale = 90;
   myGraphics[idx].verticalScale = 90;
  }

in this script, all the images adjust by 90%.

what i'd like to be able to do is add a dialog box which lets the user:

1) enter the scale they're after;

2) the left offset (in positive or negative); and

3) the top offset (in positive or negative)

and this would then adjust all the images equally.

harbs script works but is rigid until the details are changed in the script itself. by using a GUI the values can be changed on the fly.

many thanks

colin

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!

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
LEGEND ,
Feb 16, 2010 Feb 16, 2010

Copy link to clipboard

Copied

How's this?

http://in-tools.com/downloads/indesign/scripts/ScaleImages.zip

Harbs

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 ,
Feb 16, 2010 Feb 16, 2010

Copy link to clipboard

Copied

that's the ticket harbs !! that's grand!!

i have some questions about the script, some might sound a bit naive:

1) the relative checkboxes next to horizontal and vertical fields: what are they relative to?

2) the script adjusts tiffs, psds, jpgs just fine, but noticed it left eps, ai and pdfs alone. is the script able to edit those as well?

but all in all, its what i was after and i'm rapt. this will help get yearbook student photos done in record time!

once again, many thanks for your help

colin

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!

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
LEGEND ,
Feb 16, 2010 Feb 16, 2010

Copy link to clipboard

Copied

If you check the relative checkbox, the percentage values will be

relative to the current percentage (i.e. 90% of its current size).

Otherwise the numbers will be absolute (i.e. 90% of its full size).

Harbs

http://www.in-tools.com

Innovations in Automation

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 ,
Feb 16, 2010 Feb 16, 2010

Copy link to clipboard

Copied

oh okay, thank you for clearing that up, i wasn't sure.

sorry to sound like an old nag, but i've just had a chance to test it at work and also noticed that it will only move whole numbers, not fractions (i.e. will move 6 but NOT 6.5). also, is the script capable of moving ai, pdf and eps files as well?

many thanks

colin

ps i should mention i'm using Adobe InDesign CS3 on Mac 10.5.8.  the script is intended for Adobe InDesign CS4 on Mac 10.6 but it'd be great if the script could work on both.

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!

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
LEGEND ,
Feb 16, 2010 Feb 16, 2010

Copy link to clipboard

Copied

I'm in a good mood today...

I've uploaded a new version (same location)...

2010-02-17_0207.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
Community Expert ,
Feb 16, 2010 Feb 16, 2010

Copy link to clipboard

Copied

perfect. spot on. magnificent. incredible. outstanding.

does everything that i need it to do. excellent!!!!

thank you very much for your help on this one!

colin

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!

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
LEGEND ,
Feb 17, 2010 Feb 17, 2010

Copy link to clipboard

Copied

I've added a few more options and changed the name (and fixed a bug).


2010-02-17_1214.png

Here's a link to the current version:

http://in-tools.com/downloads/indesign/scripts/ScaleGraphics.zip

Harbs

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
LEGEND ,
Feb 17, 2010 Feb 17, 2010

Copy link to clipboard

Copied

I really don't have the time for this, but I'm not one to leave "good enough" alone...

I added another option:

2010-02-17_1230.png

Harbs

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
LEGEND ,
Feb 17, 2010 Feb 17, 2010

Copy link to clipboard

Copied

I've just written about this on my blog:

http://in-tools.com/wordpress/indesign/scripts/scale-graphics-script

Harbs

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 ,
Feb 17, 2010 Feb 17, 2010

Copy link to clipboard

Copied

Anything for a Blog post.


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
LEGEND ,
Feb 17, 2010 Feb 17, 2010

Copy link to clipboard

Copied

LATEST

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