Batch Converting png To bmp

Dotan Cohen dotancohen at gmail.com
Thu Apr 20 19:23:37 UTC 2006


On 4/20/06, Lucia Sanchez <lu at gusilu.net> wrote:
> Dotan Cohen wrote:
> > What proggram can I use to batch convert a folder of png's to bmp's? I
> > wasthinking image magic but I can't seem to figure out what to do with
> > it.
>
> cd DIRECTORY
> for i in *bmp ; do convert $i ${i//.bmp/.png} ; rm *bmp ; done
>
>
> That should work :)
> --
> Lu.
>

Thanks, Lu. It was a little backwards (I need to convert from png to
bmp), so I ran:
$ for i in *png ; do convert $i ${i//.png/.bmp} ; done

There was .bmp files created, however, they do not seem to be real bmp
files. The images are all broken and no program (KoulorPaint, for
instance) can open them.
Can I do anything else? Thanks.

Dotan


More information about the kubuntu-users mailing list