我有一个在图像上创建水印的命令,如何将此命令放在具有minimagick的进程上?
convert -size 120x80 xc:none -fill "rgba(20,20,20,0.2)" -gravity NorthWest -draw "text 10,10 'Copyright'" -gravity SouthEast -draw "text 5,15 'Copyright'" miff:- | composite -tile - original.jpg watermarked.jpg
上传
process :watermark
def watermark
???
end