: How to fix disproportional scaling across multiple images at the same time in InDesign? In InDesign CS6, you have to directly select an image and scale up or down after clicking the "constrain
In InDesign CS6, you have to directly select an image and scale up or down after clicking the "constrain proportions" chain-link button in order to revert the proportions back to normal. When selecting multiple images at the same time, this trick does not work. To save time, I'd like to fix multiple disproportional images all at once. Could this be done by writing a script? Is there an easier way?
Thanks!
-JD
More posts by @Phylliss782
2 Comments
Sorted by latest first Latest Oldest Best
Well it's been a while since I posted this question but I figured I would let everyone know what my solution was. The truth is, there is no way for InDesign CS6 to reset the proportions of stretched images. The only method is to directly select the graphic, then scale up or down with the proportions locked, then they will match.
BUT
I learned a thing or two about scripting since my last visit, so just add this little snippet to your scripts folder and you can select a whole bunch of images and run this script to reset all their proportions at the same time.
//Resets each selected image to its original proportions, one at a time.
function runAll(){
//loops through each selected item.
for(loop = 0; loop < app.selection.length; loop++){
var sel = loop;
//makes sure the current item has graphics.
if (app.selection[sel].allGraphics.length > 0) {
//loops through all graphics contained by each selected item.
for(img = 0; img < app.selection[sel].allGraphics.length; img++){
var cuts = app.selection[sel].allGraphics[img];
//checks if the image is stretched vertically or horizontally, then unstretches it
if (cuts.horizontalScale > cuts.verticalScale){
cuts.horizontalScale = cuts.verticalScale;
}else{
cuts.verticalScale = cuts.horizontalScale;
}
}
}
}
}
//make all actions into a single undo step
if (parseFloat(app.version) < 6)
runAll();
else
app.doScript(
runAll,
ScriptLanguage.JAVASCRIPT,
undefined,
UndoModes.ENTIRE_SCRIPT,
"Make Images Proportional"
);
Does selecting all of the images and pressing ctrl+alt+shift+C (cmd+opt+shift+c) do the trick? That command will fill the frame, locking the original image proportions. At that point, the extra image will extend (hidden) outside the frame. To remedy that, ctrl+alt+c (cmd+opt+c) will extend the frame to the image's full size.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.