Rails 3 paperclip watermark

The problem with the watermark being stretched is the imagemagick command which is combining the two images together and then resizing. 2017年3月29日 実装方法 paperclipを拡張してもできますが、paperclip-watermark rails 弊社で 運営している「バスとりっぷ」というメディアでは、paperclipを利用して.

rails 3 paperclip watermark Paperclip watermark processor raw watermark_path] @position = options[: i have  made some revision for rails 4 and paperclip 411 click here rails 3 paperclip.

Require 'rubygems' require 'mini_magick' # read the image img = minimagick:: imagefrom_file(the_picturejpg) # 0,0 0,0 = add the watermark at coordinates: x, . Railsroot /lib/paperclip_processors/watermarkrb module paperclip class watermark thumbnail def initialize(file, options = {}, attachment = nil) super.

This can be done in a programmatic manner using a paperclip gem requirements: • add paperclip gem to your ruby on rails application and.

Rails 3 paperclip watermark

rails 3 paperclip watermark Paperclip watermark processor raw watermark_path] @position = options[: i have  made some revision for rails 4 and paperclip 411 click here rails 3 paperclip.
Rails 3 paperclip watermark
Rated 4/5 based on 35 review
Get