Forum: Inkscape bulk conversion from .wpg to .png with command line

7ee05a9365c5e1bd70c4bb0c0012eb0a?d=identicon&s=25 g. k. (jabberwocky)
on 2013-06-14 06:01
hi-
I'm working on a project that requires me to convert a large number of
images from .wpg to .png in order to be able to use them. I usually work
in windows, but if it's easier to do with the linux command line (which
I'm beginning to suspect it will be) that's certainly doable. I've tried
both imagemagick and paint shop pro, as they both claim to be able to
handle .wpg and are relatively easy to do bulk conversions with.
However, they both were only able to "successfully" convert only a
handful of the images, and those were greatly distorted. I tested
inkscape with individual images that both imagemagick and paint shop pro
choked on, and it converted them beautifully. However, I have a large
number of files that I need to convert and would greatly prefer to be
able to convert all images in the folder with a single command, instead
of opening them all one-by-one and saving as .png. I've found the
--export-png command, but I'm not sure how to make it do all the files
in the directory (or if I even can). I'm afraid my command line skills
are far from exhaustive, so "inkscape *.wpg --export-png=*.png" was all
I could think to try, but all it did was convert each image to "*.png"
with each successive file overwriting the previous, leaving me with only
the last image in the list converted.
Thanks.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.