Skip to main content
Known Participant
August 23, 2022
Answered

Please share js code for crop and rotate any image in adobe illustrator

  • August 23, 2022
  • 2 replies
  • 418 views

Please share js code for crop and rotate any image in adobe illustrator

This topic has been closed for replies.
Correct answer Charu Rajput

For crop, following link may be useful.

https://aiscripts.com/image-crop-script/

 

2 replies

Charu Rajput
Community Expert
Community Expert
August 29, 2022

@Rishabh22425292b5db 

Hi, I am sure for crop, but for rotate, you can use following code

var _item = app.selection[0];
_item.rotate(37, true, true, true,true, Transformation.CENTER);

 

Reference to follow to change the parameters

https://www.indesignjs.de/extendscriptAPI/illustrator-latest/#PageItem.html#d1e56027__d1e56704

 

Best regards
Charu Rajput
Community Expert
Charu RajputCommunity ExpertCorrect answer
Community Expert
August 29, 2022

For crop, following link may be useful.

https://aiscripts.com/image-crop-script/

 

Best regards
Known Participant
September 1, 2022

How can i saved any cropped image in our local folder using js in adobe illustrator?

Known Participant
August 29, 2022

Can any one reply on this from Adobe illustrator team?