Im trying to add a watermark to processed images with below code I got from several resources:
def watermark
manipulate! do |img|
logo = Magick::Image.read("#{Rails.root}/assets/images/watermarks/watermark.png").first
img = img.composite(logo, Magick::SouthEastGravity, Magick::OverCompositeOp)
end
end
Only problem is, you guess it, does not work. I get no errors in log/console whatsoever
This is my method inside my uploaded and called like:
def function
version :thumb do
process :resize_to_fill => [96, 96]
process :watermark
end
end
Any thoughts on getting some logs on why this doesn't work? I have the Rmagick gems and Imagemagick installed on my system (OSX) And resizing of images does work correct.