Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Need a Script to batch Resize art and Artboard

Community Beginner ,
Oct 21, 2011 Oct 21, 2011

I have about 3000 Illustrator assets with varying sizes that I need to batch resize to fit proportionally, along with their artboard, to 170 x170 pixels. Once they have been resized, I can pinpoint "problem images" through bridge and make further adjustments. I have poked around but not found any script that can accomplish this. A few seem to be in the general direction, but sadly my knowledge of scripting is severly limited. Can anyone help me with this?

TOPICS
Scripting
11.3K
Translate
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
Adobe
Community Beginner ,
Oct 22, 2011 Oct 22, 2011

If you have Acrobat available you can make a 'save as' action and save your files as PDFs via batch, then you can create pdf from multiple files in Acrobat and print to AdobePDF printer with the desired page size and seting the pages to fit the paper size in the printer dialogue. Then if you need the pages to be separate files to view them in Bridge you can select all pages in the newly created file and check Extract Pages As Separate Files in Document -> Extract Pages menu. You dont need a script for this task, if I understand correctly your request.

Translate
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 Beginner ,
Oct 26, 2011 Oct 26, 2011

Kandod, thank you, but not really what I needed. The AI assets have to retain their AI files. The assets are from a legacy product and are being ported into a new product. The new product has differing dimensions in order to show up properly. Many of the assets can be sized without any editing, but there are about 200-300 that will need to be adjusted in AI to better fit the space. The use of Bridge merely allows me to quickly visually identify and tag those images I need my production team to edit. In essence, the sequence of event for the script would be as follows:

1) Open the AI asset file

2) Resize the artboard to 170 x 170 pixels

3) Resize the Asset (graphic) to fit proportionally within that new size

4 Save and close the file.

Does that clarify things a bit? Oh, and I'm working off CS5.5. I tried to record an action, but it doesn't record artboard changes.

Translate
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 ,
Oct 26, 2011 Oct 26, 2011

3) what's the "Asset"? a placed raster image? is it the one and only thing in each AI file?

Translate
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 Beginner ,
Oct 27, 2011 Oct 27, 2011

Asset is a generic term we use company wide to describe audio and visual files. In this particular case, my "asset" is a AI vector illustration.

Translate
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
Guest
Aug 15, 2013 Aug 15, 2013

Would love to know if you found a solution to this?

I'm facing the same issue, I need to conform the artboard size of about 600 .ai files to 500px x 500px

and then I need to fit to fill the contents of the file to the artboard

Translate
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 Beginner ,
Sep 13, 2017 Sep 13, 2017

Check this out:

https://gist.github.com/shivendra14/5147b529001da1458a0017c866f633b9

created this script to resize artboard and containing artwork to 1700px.

community may help to add file open, save and close code on top of the above script.

Translate
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 Beginner ,
Oct 09, 2018 Oct 09, 2018
LATEST

Hi Shuvebdra,

Thanks for sharing but It doesn't seem to work right for me. I am new to scripting so maybe I did something wrong...

Translate
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