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

New Here ,
Aug 23, 2022 Aug 23, 2022

Copy link to clipboard

Copied

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

TOPICS
How to , Scripting

Views

63

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Aug 29, 2022 Aug 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

 

Likes

Translate

Translate
Community Expert , Aug 29, 2022 Aug 29, 2022

For crop, following link may be useful.

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

 

Likes

Translate

Translate
New Here ,
Aug 29, 2022 Aug 29, 2022

Copy link to clipboard

Copied

Can any one reply on this from Adobe illustrator team?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 29, 2022 Aug 29, 2022

Copy link to clipboard

Copied

@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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 29, 2022 Aug 29, 2022

Copy link to clipboard

Copied

For crop, following link may be useful.

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

 

Best regards

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 01, 2022 Sep 01, 2022

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines