因为linux下截图什么的都是默认png格式,经常要转换为jpg,数量多了就想弄个批量转换,搜索了下找到mogrify和convert这两 个由ImageMagick提供的命令。mogrify更适合批量操作,除了转换格式还学了个批量缩放的参数,还有很多参数、命令暂时用不到。
批量转换png图片为jpg格式:
1
|
mogrify -format jpg *.png
|
1
|
mogrify -sample 30%x30% *.png
|
ppt.cc/fVjECx ppt.cc/fEnHsx ppt.cc/fRZTnx ppt.cc/fSZ3cx ppt.cc/fLOuCx ppt.cc/fE9Nux ppt.cc/fL5Kyx ppt.cc/fIr1ax ppt.cc/f71Yqx tecmint.com linuxcool.com linux.die.net linux.it.net.cn ostechnix.com unix.com ubuntugeek.com runoob.com man.linuxde.net ppt.cc/fwpCex ppt.cc/fxcLIx ppt.cc/foX6Ux linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com ppt.cc/ffAGfx ppt.cc/fJbezx ppt.cc/fNIQDx ppt.cc/fCSllx ppt.cc/fybDVx ppt.cc/fIMQxx ppt.cc/fKlBax
1
|
mogrify -format jpg *.png
|
1
|
mogrify -sample 30%x30% *.png
|