Mobile app version of vmapp.org
Login or Join
Michele215

: Converting a lot of Illustrator files to PNG with transparent background I have about 280 Illustrator .ai files that I need to convert into .png files with a finished size of 500px x 500px.

@Michele215

Posted in: #AdobeIllustrator #Cs6 #Png #Transparency

I have about 280 Illustrator .ai files that I need to convert into .png files with a finished size of 500px x 500px. All of them aren't squared, so those that are, for example rectangular, need to be centered in the image and the background needs to be transparent.

Is there an easier way to do this because I wouldn't like to spend time converting them manually.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele215

1 Comments

Sorted by latest first Latest Oldest Best

 

@Debbie163

If you have imagemagick installed, you can run the following command:

convert -colorspace RGB
-background transparent
-resize 500x500
-gravity center
-extent 500x500
yourfile.ai outputfile.png


How you iterate over all files in a directory depends on your environment, of course, but something like this should work for bash:

for i in *.ai; do convert -colorspace RGB -background transparent -resize 500x500 -gravity center -extent 500x500 "$i" "$i.png"; done

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme