Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha channel being ignored in custom operator #13

Open
jcallina opened this issue Sep 1, 2010 · 0 comments
Open

Alpha channel being ignored in custom operator #13

jcallina opened this issue Sep 1, 2010 · 0 comments

Comments

@jcallina
Copy link

jcallina commented Sep 1, 2010

I am seeing this issue on both Windows 7 and Ubuntu:

Here is my custom operator.

class Fleximage::Operator::Snap < Fleximage::Operator::Base
   def operate(caption = nil)
   photo_frame = Magick::Image.read("public/images/frames/snap_master2.png")[0]
    @image = @image.resize_to_fill(150, 180)

    @image = photo_frame.composite(@image, 17, 17, Magick::OverCompositeOp)
  end
end

When this is executed any alpha in "public/images/frames/snap_master2.png" is rendered in black. I have tried to recreate the image in several ways with similar results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant