Batch Converting png To bmp

Lucia Sanchez lu at gusilu.net
Thu Apr 20 22:07:54 UTC 2006


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.

whooops :(  I suppose that means that convert can't handle bmp files
properly, I guess.

Doing a quick Google search gives nothing definite, but try adding the
"+matte" option if your png images have an alpha mask and see if that works.
-- 
Lu.

------------------------------------
 I will live forever or die trying.
------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20060421/61e1b94e/attachment.sig>


More information about the kubuntu-users mailing list