我想知道如何将带有 alpha 通道的 png 和 gif 文件转换为带有回形针的白色背景的 jpg
我试过这个,但它不起作用
has_attached_file(
:photo,
:whiny => false,
:styles => {
:medium => ["300x300>", :jpg],
:thumb => ["100x100>", :jpg]
},
:convert_options => { :all => '-alpha white -background white'}
)
它以灰色背景保存文件。