Skip to content

Alpha channel being ignored in custom operator #13

@jcallina

Description

@jcallina

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions