Netpbm是一个很好用的,很强大的命令方式图像处理程序,特别适合图像批量处理,与ImageMagick相似,支持多平台。
NetPBM是一个图象的格式转换和简单编辑软件。通过交互式的界面,能帮助你方便的使用,就像Linux上的Adobe Photoshop。它支持超过100种图象格式,包括JPEG、MPEG、PNG、GIF、TIFF、BMP、XWD、XBM、G3 fax以及其他特殊格式,像数字相机和掌上电脑。它还拥有超过40种的编辑修改工具,可以基本上满足编辑的需求。
将一幅png图像转成bmp格式,命令为:
pngtopnm test.png > a.pnm
ppmtobmp -bpp=24 a.pnm >a.bmp
(先将png转换成pnm格式,再将pnm转换成bmp。pnm是linux下的一种原始图像存储格式,类似于win32下的bmp,bpp=24表示转出来的bmp图要24位色)
Netpbm is a toolkit for manipulation of graphic images, including conversion of images between a variety of different formats. There are over 300 separate tools in the package including converters for about 100 graphics formats. Examples of the sort of image manipulation we're talking about are: Shrinking an image by 10%; Cutting the top half off of an image; Making a mirror image; Creating a sequence of images that fade from one image to another.
最新版本:
官方主页:http://netpbm.sourceforge.net/