Sunday, October 26, 2008

Batch convert jpg to eps on Ubuntu

Tried to find the way to convert jpg to eps in a batch mode.
It is difficult to find it online.
Thus, I record my method here.
In command line:
1. install imagemagick (sudo apt-get install imagemagick)
2. for i in *.jpg; do convert $i $i.eps; done

If there are "i" in the pictures names, it may cause the problem, in order to avoid this problem, you may replace "i" with "z"

It will keep the file name unchanged.

5 comments:

Unknown said...

thankss you are the best man

Kona said...

TY so muuuucccccchhhhh!!! xD

George said...

thanks for the post, it saved me a lot of time working in LaTeX!

Unknown said...

Nice! It really works ;)

Unknown said...

Nice! It really works ;)