一,用convert创建空图片
1,执行命令[lhdop@blog ~]$ cd img [lhdop@blog img]$ convert -size 1024x768 xc:"#FFF" ./white.png [lhdop@blog img]$ convert -size 1024x768 xc:"#0000ff" ./blue.png [lhdop@blog img]$ convert -size 1024x768 xc:transparent ./transparent.png说明: -size 指定生成图片的长宽 xc: 指定canvas的颜色 2,查看效果:
![](/i/l/?n=22&i=blog/1938691/202210/1938691-20221014152557940-2104907398.png)
说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest
对应的源码可以访问这里获取: https://github.com/liuhongdi/
或: https://gitee.com/liuhongdi
说明:作者:刘宏缔 邮箱: [email protected]
二,查看imagemagick的版本:
[lhdop@blog img]$ convert -version Version: ImageMagick 6.9.10-86 Q16 x86_64 2020-01-13 https://imagemagick.org Copyright: © 1999-2020 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC Modules OpenMP(4.5) Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib gvc jbig jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf x xml zlib
标签:10,convert,imagemagick,img,blog,https,lhdop,ImageMagick From: https://www.cnblogs.com/architectforest/p/16791729.html