Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
3) what's the "Asset"? a placed raster image? is it the one and only thing in each AI file?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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...
Find more inspiration, events, and resources on the new Adobe Community
Explore Now