: 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.
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.
More posts by @Michele215
1 Comments
Sorted by latest first Latest Oldest Best
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
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.