Copy link to clipboard
Copied
I have a bunch of AI files that need to be run through Photoshop's Save For Web to be exported as either JPG or GIF. I'm looking for a way to automate this with Actions. I have gotten this far...
Only problem is the filename. Because at the very beginning we used Bridge to bring all the AI files into Ps as layers, this Ps file has no filename. So when we get to Save For Web and the JPG or GIF is saved, it's named "Untitled-1.jpg." So when the next one is due to come along there's a prompt to overwrite it, which obviously I do not want. Ideally I would like to have each JPG or GIF named after it's AI file, which is carried into Ps as the layer name. So maybe there's a way?
This has really done my head in, so I hope someone else has the mind for this and understood what I'm actually asking of!
EDIT: P.S. The old way I used to do this whole procedure is drag my AI files into Ps, then set a width or height value (usually somewhere between 20 and 30cm) and then Save For Web each file. Tedious. The Bridge process of bringing all the AI files in as Ps layers eliminates the window that asks me to set a width or height value. So without that prompt, there might be another way to automate this.
Instead of going thru all that you could try the Image Processor Pro script. which has a Save for Web setting.
ps-scripts - Browse /Image Processor Pro/v3_2 betas at SourceForge.net
Or if you have adobe illustrator you could use two save for web actions and then batch process the ai files.
Copy link to clipboard
Copied
Instead of going thru all that you could try the Image Processor Pro script. which has a Save for Web setting.
ps-scripts - Browse /Image Processor Pro/v3_2 betas at SourceForge.net
Or if you have adobe illustrator you could use two save for web actions and then batch process the ai files.
Copy link to clipboard
Copied
I agree with Jeff, there are much better ways to do this directly in Illustrator, no need for Photoshop (Export as, Save for web).
_______________
Or perhaps using better ways in Photoshop than what you have been using. If you really like the load files to layers route, once all the named layers are ready, highlight all layers and right click in the layer panel and use the export as feature.
_______________
You could also use the layers to files script, however you would likely need to use Adobe Bridge’s batch rename tool to remove the unwanted parts of the filename.
Copy link to clipboard
Copied
Thanks Jeff and Stephen! The Image Processor Pro script method looks like the best for me. I will give it a shot. The first method you suggested Stephen, is interesting. But I see I need to put in a filename prefix, and ideally, I would like to the JPGs or GIFs to have the same filenames as their original AI files (obviously without the .ai extension).
Yeah, avoiding Ps entirely is prolly the best bet.
Copy link to clipboard
Copied
But I see I need to put in a filename prefix, and ideally, I would like to the JPGs or GIFs to have the same filenames as their original AI files (obviously without the .ai extension).
Agreed, this is why I showed how to use Adobe Bridge’s Batch Rename feature to remove the unwanted prefix and the unwanted .ai filename extension, which is a two part step. The other two suggestions should handle the filename issue better.