0

I neew to apply fit to artwork bounds and resave all files and keep file stucture. All my files are svg. and i want to save them with this settings:enter image description here

The most close solution i found is: Recursively batch-resave Illustrator AI files to legacy format

but have no idea how to add an action fit to artwork bounds and specify options like on image.

1

to be able to record "Fit to Artwork Bounds" you have to use "Insert Menu Item..." in the Action's Flyout Menu

enter image description here

0

As far as I can tell there is no way to record 'Fit to Artwork Bounds' in an action... but there is a way to get what you're after without doing that anyway.

You need to create 2 separate actions using this method.

So open one of your SVGs (after making a backup copy of your SVG folder for safe keeping) and in the Actions Panel click on 'Create New Action' and hit 'Record':

Action Panel

Action 1

  • Go to File > Export > Export As...
  • Don't change the filename – just overwrite
  • Choose options, click OK
  • Press Ctrl+W to close the document

Now you can press the 'Stop' button at the bottom of the Actions Panel

That saves your SVG 'trimmed' (fit to the artwork bounds).

Now open the file you just exported and click 'Create New Action' again.

Action 2

  • Go to File > Save As...
  • Again overwrite the file
  • Choose options as you've specified and click OK:

SVG Options

  • Press Ctrl+W to close
  • Click 'Stop' in the Actions Panel

Now just batch run these actions on your entire SVG folder, in order, one after the other...

Done

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.