rubyrmagick

Replacing a color with rmagick


I'm currently stuck on a - more or less - simple task. I need to replace some colors with other colors in an image using rmagick.

I found two approaches.

Is there a better solution?


Solution

  • Finally, I found the answer myself:

    Using Magick::Image#opaque_channel