Skip to content


Support "-alpha remove" to "flatten" the alpha channel #63

bf4 opened this Issue · 3 comments

3 participants

rmagick member

Issue by tstirrat
Wednesday May 21, 2014 at 21:24 GMT
Originally opened as #103

RMagick appears to support most of the options for img.alpha(type), but it doesn't support the alpha remove command.


"The best solution is to use the Alpha Remove method to quickly and simply replace the transparency with a background color underlay..."

convert a.png   -background skyblue  -alpha remove -alpha off a_remove.jpg

At the moment I resort to a workaround:

img.border!(0, 0, 'white')
img.alpha Magick::DeactivateAlphaChannel

:+1: For that flag, just needed it. Thanks for the workaround, too.


Could you add it to RMagick source code and create a pull request with it?


I can certainly give it a try. :smile:

@vassilevsky vassilevsky added this to the v2.15.0 milestone
@vassilevsky vassilevsky closed this in #192
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.