Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
bf4 opened this Issue · 3 comments

3 participants

@bf4
Owner

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.

from: http://www.imagemagick.org/Usage/masking/#remove

"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
@ollie

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

@vassilevsky
Owner

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

@ollie

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.