Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How change image color depth #7

Open
galievruslan opened this issue Mar 21, 2014 · 0 comments
Open

How change image color depth #7

galievruslan opened this issue Mar 21, 2014 · 0 comments

Comments

@galievruslan
Copy link

I use Mini_magick with gem carrierwave. Trying to change the color depth, but it is not work. Changes only quality. How change image color depth using mini_magick

  def optimize
    manipulate! do |img|
      img.strip
      img.combine_options do |c|
        c.quality "95"
        c.depth "24"
      end
      img
    end
  end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant