How to resize the image size by percentage ?
DEAL ALL,
GREETINGS!
I'm facing a small problem. There is aproject i'm developing script for. Anyhow, the designers asked me somthing and since I'm not a designr, so I don't have a clue how to do it from the UI so i can understand how to do it wit script.
So, they asked me to decrese the size of image to make it 30% because the current size is 50%. It's applicable with code? i dont even changed the size of image! i Just place the image and use the fit functons to make it smaller and better, check my code, below:
var doc = app.documents.add()
var image = File.openDialog("Please try to select the icons folder");
var rect1 = doc.pages[0].textFrames.add({
geometricBounds: [12.7, 12.7, 90, 90]
});
rect1.place(image)
rect1.fit(FitOptions.PROPORTIONALLY)
rect1.fit(FitOptions.FRAME_TO_CONTENT)
app.activeWindow.viewDisplaySetting = ViewDisplaySettings.HIGH_QUALITY;However, is it possiable to decrease the image size by percentege? and how?
I'm using JS.
Thanks all.
