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

Closed
bf4 opened this Issue Jul 24, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@bf4
Member

bf4 commented Jul 24, 2014

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

This comment has been minimized.

Show comment
Hide comment
@ollie

ollie Apr 23, 2015

👍 For that flag, just needed it. Thanks for the workaround, too.

ollie commented Apr 23, 2015

👍 For that flag, just needed it. Thanks for the workaround, too.

@vassilevsky

This comment has been minimized.

Show comment
Hide comment
@vassilevsky

vassilevsky Apr 23, 2015

Member

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

Member

vassilevsky commented Apr 23, 2015

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

@ollie

This comment has been minimized.

Show comment
Hide comment
@ollie

ollie Apr 23, 2015

I can certainly give it a try. 😄

ollie commented Apr 23, 2015

I can certainly give it a try. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment