In paperclip, for example, it is possible to add this to set white background when .png is converted to .jpg:
:convert_options => { :all => '-background white -flatten +matte'}
Once carrierwave uses rmagick too, how to do that?
Obs.: My files are being stored in S3.
My code:
version :square do
process :resize_to_fill => [200, 200]
process :convert => 'jpg'
end
I’ve solved the problem, but I’m not sure if this is the best approach: