分页: 1 / 1

整理下imagemagick脚本

发表于 : 2009-06-24 12:15
eexpress

代码: 全选

2009-06-24 12:19:28 三 ~/应用/脚本  
☎ cat image-3D 
#!/bin/sh
#
INPUT=$1
COLOR=$2
OUTPUT=$3

convert $INPUT -matte \
        \( +clone -channel A -separate +channel -negate \
           -bordercolor black -border 5  -blur 0x2 -shade 120x30 \
           -normalize -blur 0x1  -fill $COLOR -tint 100 \) \
        -gravity center -compose Atop -composite \
        $OUTPUT

2009-06-24 12:19:44 三 ~/应用/脚本  
☎ cat image-font 
#!/bin/sh
#

convert -background none -fill blue -font "/home/exp/安装/备份/●可用字体/中文字体/经典繁颜体.TTF" -pointsize 180 label:$1 $2 
2009-06-24 12:19:49 三 ~/应用/脚本  
☎ cat image-shade 
#!/bin/sh
#
# Given a shaped image, create a color image with a highlight shading.
#
convert $1 \( +clone -background black -shadow 80x4+4+4 \) +swap \
          -background none  -layers merge +repage $2
2009-06-24 12:19:53 三 ~/应用/脚本  
☎ cat a-y荧光字贴图.bash 
#!/bin/bash

convert -fill dodgerblue -background none -font /home/exp/安装/备份/●可用字体/中文字体/经典繁颜体.TTF -pointsize 30 label:"$*" -bordercolor black -border 16x16 \( +clone -blur 0x25 -level 0%,50% \) -compose screen -composite ~/下载/f-荧光字.png
paste-pic.pl ~/下载/f-荧光字.png
2009-06-24 12:20:05 三 ~/应用/脚本  
☎ alias |g montage
alias m-h-横排图片合并='montage -geometry +0+0 -background none'
alias m-v-竖排图片合并='montage -tile 1 -geometry +0+0 -background none'

Re: 整理下imagemagick脚本

发表于 : 2009-06-24 14:03
eexpress
谁知道去掉彩色,得到灰度图片的写法。

Re: 整理下imagemagick脚本

发表于 : 2010-04-08 21:47
坏坏小少
convert -type grayscale old_pic new_pic
?

Re: 整理下imagemagick脚本

发表于 : 2010-04-08 22:26
photor
:em11