Code: Select all
process :watermark
def watermark
second_image = MiniMagick::Image.open("https://s3.amazonaws.com/....logo.png")
manipulate! do |img|
result = img.composite(second_image) do |c|
c.compose "Over" # OverCompositeOp
c.gravity "Southeast"
end
result
end
end
I have been attempting to try to code white/#FFFFFF to be converted to transparent but have not been able to find the correct code.