rem 環境によって変えてね
set im=C:\Progra~1\ImageMagick-6.3.9-Q16
rem 透過PNG
%im%\convert.exe -size 200x200 xc:none -matte -channel rgba -fill white -draw "ellipse 200,120,180,120,0,360" -blur 0x10 sf.jpg -compose src_in -composite -crop 200x100+0+50 +repage sample346.png
rem 白背景のjpeg
%im%\convert.exe -size 200x200 xc:none -matte -channel rgba -fill white -draw "ellipse 200,120,180,120,0,360" -blur 0x10 sf.jpg -compose src_in -composite -crop 200x100+0+50 +repage ( -size 200x100 xc:white ) +swap -compose dst_over -composite sample346.jpg
元画像(sf.jpg)
透過PNGの出力画像(sample346.png)

白背景のjpegの出力画像(sample346.jpg)

No comments:
Post a Comment