当前位置: 动力学知识库 > 问答 > 编程问答 >

imagemagick - How to convert a jpg into a 24-bit uncompressed BMP 4.0?

问题描述:

I've tried using image magic but it converts the image into a compressed format and most of the online conversion tools are also doing the same thing.

Is there some way i could achieve this in image magic or anywhere else?

网友答案:

Use the ImageMagick "-compress none" option to prevent compression, and use "-define bmp:format=bmp4" to force BMP4.0:

convert in.jpg -define bmp:format=bmp4 -compress none out.bmp

You can omit defining the bmp4 format because that's the currently the default BMP output format for ImageMagick anyhow.

See the ImageMagick documentation for the -compress and -define options.

分享给朋友:
您可能感兴趣的文章:
随机阅读: