我的代码是这样写的。
它将“text_here”插入到上传的图像文件中。
此文本为白色,后面有黑色阴影。
尽管我说-pointsize 15两次,但它只扩大了
has_attached_file :user_avatar,
:styles => {
:thumb=> "100x100>",
:small => "400x400>" },
:convert_options => {
:small => ' -gravity south -stroke "#000C" -strokewidth 2 -annotate 0 " text_here! " -pointsize 15 -stroke none -fill white -annotate 0 " text_here! " -pointsize 15' }