Jump to content

Recommended Posts

Hi,

 

I'm attempting to create a polygon cutout of an image.

I've figured out how to do it using imagemagick from the command line (convert).

Now I want to put this logic into PHP using the Imagick library but I am getting some unexpected results -- namely, I always get a black background instead of a transparent background.

 

I could call the convert commands directly using exec or something similar, but I'd much rather use the Imagick lib for better error handling and efficiency.

 

http://jckdnk.pastebin.com/m3e325705 - some sample php code along with the corresponding convert commands.

I'd really appreciate any help.

Link to comment
https://forums.phpfreaks.com/topic/161417-unexpected-behavior-from-imagick/
Share on other sites

So if no one has any ideas can you point me in the right direction?

Should I be asking PHP gurus or imagemagick gurus? How could I find out who wrote the imagemagick module for php?

 

Any idea what forums might I might hit for this type of thing?

Thanks!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.