I recently got some InDesign files from various sources with text and images. In these files, images are scaled from 12% to 600%. So, my task is to fix the layout and send it back to the sender and they will resend it to me after editing. Chances are that they will again scale some of the images to their choice.
I tried the Jongware script, "ImageScaleInfo.jsx", but that is only giving me the scale information.
What I want is a type of Warning alert using the OnSave Event Listener that "Image(s) used in the document is scaled below 80% and above 120%.
Basically, I need a checkpoint that can alert me if the image is scaled below 80% or above 120%.
Something like the following should work
for(var i = 0; i < app.documents.allGraphics.length; i++)
var img = app.documents.allGraphics[i]
if((img.absoluteHorizontalScale < 80 || img.absoluteHorizontalScale > 120) || (img.absoluteVerticalScale < 80 || img.absoluteVerticalScale > 120))
alert("Image(s) used in the document is scaled below 80% and above 120%.")