版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yx2817/article/details/56007894
下载安装图形转换工具Netpbm:apt-get install netpbm
PNG格式:
1.pngtopnm temp1.png > temp2.pnm
2.pnmquant 224 temp2.pnm > temp3.pnm
3.pnmtoplainpnm temp3.pnm > logo_linux_clut224.ppm
BMP格式:
1.bmptoppm temp1.bmp > temp2.ppm
2.ppmquant 224 temp2.ppm > temp3.ppm
3.pnmnorawm temp3.ppm > logo_linux_clut224.ppm