Skip to main content
Participant
November 3, 2022
Question

Importing, clipping & saving images using Scripting

  • November 3, 2022
  • 1 reply
  • 160 views

Im looking to create/modify a script that will import an of image clip it into a specifically sized rectangle and then save the file. Quite simple in theory but with no scripting knowledge I'm not getting to far...

 

So I've used the script in the below thread to create the rectangles from a csv. Now I'm looking at adding a column to the csv which will have a corresponding file path for each relevant image so it can be imported.

 

https://community.adobe.com/t5/illustrator-discussions/need-help-to-create-vector-shapes-with-csv-width-x-height-data/m-p/11375175

 

 

Would appreciate any input. Many thanks!

This topic has been closed for replies.

1 reply

ic13400Author
Participant
November 3, 2022

Also should note that with some of the rectangles being over 3m the current script I'm using seems to keep crashing as the rectangle is drawn off centre and illustrator can't 'fitArtboardtoSelectedArt'