【发布时间】:2012-02-12 06:17:42
【问题描述】:
你如何从这个答案发送命令:Crop or mask an image into a circle
在载波中?
编辑:我现在有这个:
version :thumb_circle do
# process 'convert -size 350x350 xc:transparent -fill original.jpeg -draw "circle 240,90 300,45" -crop 152x152+164+15 +repage thumb.png'
process :crop_to_circle
end
def crop_to_circle
manipulate! do |img|
img.crop "152x152+164+15"
end
end
我不知道如何从那里着手。我想做的是在注释行上
【问题讨论】: