Search found 2 matches
- 2016-01-10T20:44:18-07:00
- Forum: Users
- Topic: How to get a transparent background for my logo added to user uploaded images using Minimagick composite?
- Replies: 3
- Views: 3393
Re: How to get a transparent background for my logo added to user uploaded images using Minimagick composite?
Well, right now I am just in practice mode because I do not yet have a logo created for the website. (I was just using a coke bottle downloaded off the web). I see now that ImageMagick and minimagick are separate. So would turning the white background to transparent be easier with Imagemagick? If ...
- 2016-01-07T06:15:12-07:00
- Forum: Users
- Topic: How to get a transparent background for my logo added to user uploaded images using Minimagick composite?
- Replies: 3
- Views: 3393
How to get a transparent background for my logo added to user uploaded images using Minimagick composite?
Rails Code: 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 Users upload images. I want those ...