Displaying 2 results from an estimated 2 matches for "overcompositeop".
2009 Jul 24
1
Attachment_fu - watermark tmp file before saved to S3
...hment_saved
unless self.thumbnail?
dst = Magick::Image.read("#{RAILS_ROOT}/public/#
{self.public_filename}").first
src = Magick::Image.read("#{RAILS_ROOT}/config/
logo.png").first
result = dst.composite(src, Magick::SouthEastGravity,
Magick::OverCompositeOp)
result.write("#{RAILS_ROOT}/public/#{self.public_filename}")
end
end
Now I''m looking for a way to hook into the attachment_fu process and
apply the watermark before the main image is saved to :s3
Or perhaps I''m approaching this in the wrong way?...
2006 Feb 28
6
File_column, RMagick, and watermarking
I''m working on a photo gallery and I''m using File_column to handle the
uploads of the files and create my thumbnails, but does anyone here have
any idea how to have a watermark (opaque text maybe) placed over one of
the versions? Any ideas on how to go about this would be great. Even if
it''s just straight RMagick code, that would be fine too.
Thanks in advance for the