Images scaling while placing using script
- July 28, 2021
- 2 replies
- 1354 views
Hi all, I am noticing a strange behavior of .place on scaling while placing images using script. Below is the code snippet:
with(app.activeDocument.stories[0].paragraphs[0].insertionPoints[-1]) {
place(File(myImage));
//place(File(myImage), false, {horizontalScale: 100, verticalScale: 100});
}
The first place command is showing my sample image scaled at 111.5% while the container box itself is created of correct size (original image size).
When I run the second place command with horizontal and vertical scales set to 100% then only it comes okay.
Different scaling is being applied to different images but I am not able to see any scaling applied in the original images themselves. I have attached the sample image as well to this thread.
Hope it must be an easy thing to solve. Can someone please help me understanding this strange behaviour of InDesign?
Best wishes,
Nishant

