Page 1 of 1

Compose 2 PNG images using a mask

Posted: 2008-10-17T01:40:40-07:00
by mynetx
  1. What is the C or PHP equivalent to...?

    Code: Select all

    composite new_image.png into_old.png with_mask.png save_as.png
  2. What can be the cause of...?
    Fatal error: Call to undefined function magicksetimageclipmask() in /on/a/server/some/file.php on line 1
    while the other Magick functions, like NewMagickWand etc, work.

Re: Compose 2 PNG images using a mask

Posted: 2008-11-07T09:24:43-07:00
by mynetx
*bump*

Re: Compose 2 PNG images using a mask

Posted: 2008-11-07T10:13:47-07:00
by QooooQ
I can't use MagickSetImageAlphaChannel either.
This is because the dll I have is representing a MagickWand Version 1.0.5, where this function haven't been introduced yet (when i'm correct?!).
Maybe its the same for magicksetimageclipmask()

Re: Compose 2 PNG images using a mask

Posted: 2008-12-20T04:14:00-07:00
by mynetx
*bump*
Still no solution in sight? :(

Re: Compose 2 PNG images using a mask

Posted: 2009-01-22T02:24:24-07:00
by mynetx
Posted: Fri, 17 Oct 2008, 10:40

Nobody there after 3 months? I start worrying if I will solve this problem at all ... :?

Re: Compose 2 PNG images using a mask

Posted: 2009-01-22T10:47:46-07:00
by el_supremo
What is the C or PHP equivalent to...?
See my MagickWand examples in C (url in my sig). The example titled "Using a Compose Mask to Limit the Composed Area" shows you how to replicate the composite command you gave. However, it is not "pure" MagickWand code. I had to resort to using a little bit of MagickCore because I couldn't figure out how to set the ->mask entry in the destination wand using a MagickWand function.
Perhaps Magick can clue me in :-)

Pete

Re: Compose 2 PNG images using a mask

Posted: 2009-01-22T11:08:05-07:00
by mynetx
Unfortunately I can't resort to Magick Core in PHP :P