Batch Converting png To bmp

Philip Tuckey philtuckey at free.fr
Sun Apr 23 06:23:29 UTC 2006


> On Friday 21 April 2006 06:07, Lucia Sanchez wrote:
> > Dotan Cohen wrote:
> > > 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.

You could try using the netpbm conversion routines. I think the following 
is what you need:

pngtopnm file.png | ppmtobmp > file.bmp

Philip




More information about the kubuntu-users mailing list