Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question