Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8057105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:55:18+00:00 2026-06-05T08:55:18+00:00

Having inside my uploader: version :profile do process :resize_to_fill => [300, 300] process :quality

  • 0

Having inside my uploader:

version :profile do
    process :resize_to_fill => [300, 300]
    process :quality => 90
    process :watermark
  end

then :

  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
  • above won’t work while imagemagick is installed
  • there is no error logging so very very hard to debug

  • is there a way to debug and fix above code to make a working watermark method for carrierwave?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:55:19+00:00Added an answer on June 5, 2026 at 8:55 am

    Where’s the line where you write the result to disk?

    I believe the composite method itself doesn’t write the result to disk. You have to call img.write('composite.gif') (or whatever filename you want) in order to actually save the result of the composite.

    I suppose it’s possible that carrierwave does this for you, but can you verify that by checking the output contents of the file and/or timestamps to see if the file was modified after upload?

    Ref: http://rmagick.rubyforge.org/src_over.html – about half way down the page

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having the following module: module Foo end How can we add inside this Foo
I am having an img inside <p> tag and if I click the img
Is having tags inside a jstl tag considered bad form? So for example I
I have a list of div with each div having a image inside. The
Im having issues vertically positioning text inside of a text input field in Firefox.
Inside a page I am having a TR on which when user click it
I was having problems with the DOM since elemnets inside of google visualization tables/graphs
I am having some problems writing to a file in unicode inside my c
I am having difficulties getting a span tag to work properly inside a table.
i added a method inside my high chart function but im having trouble calling

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.