Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Support "-alpha remove" to "flatten" the alpha channel #63
RMagick appears to support most of the options for
"The best solution is to use the Alpha Remove method to quickly and simply replace the transparency with a background color underlay..."
At the moment I resort to a workaround:
img.border!(0, 0, 'white') img.alpha Magick::DeactivateAlphaChannel