Documentation for ImageProcessing::Builder? #108
brian-nicholls
started this conversation in
General
Replies: 1 comment 3 replies
-
Anything you see in the MiniMagick backend docs can be called on the The following should work: minimagick! do |builder|
watermark_path = "#{Rails.root}/app/assets/images/watermark.png"
builder.composite(watermark_path, mode: "overlay") do |c|
c.tile
end
end |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using CarrierWave::MiniMagick. According to the docs:
However I don't see any mention here in the docs of how to use the Builder object. I am trying to composite a PNG watermark onto a PDF.
For reference, the below code using
manipulate!
works on my local environment, but not on the Dockerized production environment. Since the docs say it only exists for backwards compatibility, I am trying to get it working usingminimagick!
via this gem. Any chance someone could help with translating this into a version usingImageProcessing::Builder
?Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions