R
R
Ruslan Galiev2014-03-21 09:51:07
Ruby on Rails
Ruslan Galiev, 2014-03-21 09:51:07

Rails carrierwave mini_magick - how to change color depth?

Hello
I am using carrierwave + mini_magick to upload and edit images. It is necessary to change the color depth for uploaded images.

def optimize
    manipulate! do |img|
      img.strip
      img.combine_options do |c|
        c.quality "95"
        c.depth "48"
      end
      img
    end
  end

Only the image quality changes, but the color depth remains the same. Tell me how to be?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question