Search found 7 matches
- 2013-04-16T03:39:48-07:00
- Forum: MagickWand for PHP
- Topic: Preserving Alpha with MagickCompositeImage
- Replies: 5
- Views: 115308
Re: Preserving Alpha with MagickCompositeImage
You are writing to a PNG24 format... that format has no transparency. so any transparency left after the compositions will be lost (making the hidden fully-transparent color visible). Try using PNG32 PS; I would move the 'SetFormat' to just before you write as that is where it is needed. Yes it can ...
- 2013-04-15T11:12:17-07:00
- Forum: Users
- Topic: Interpolated lookup gradients with colour weighting
- Replies: 8
- Views: 12124
Re: Interpolated lookup gradients with colour weighting
Unfortunately I don't really have the luxury of using the scripts as my code needs to work through PHP without exec().
I would appreciate some help with this though:
viewtopic.php?f=10&t=23180
I would appreciate some help with this though:
viewtopic.php?f=10&t=23180
- 2013-04-14T05:23:10-07:00
- Forum: MagickWand for PHP
- Topic: Preserving Alpha with MagickCompositeImage
- Replies: 5
- Views: 115308
Re: Preserving Alpha with MagickCompositeImage
Thanks, I already tried that and I tried setting it to the border image as well.
I also tried this:
For both and that didn't work either.
I also tried this:
Code: Select all
MagickSetImageAlphaChannel($main_image, MW_ActivateAlphaChannel);
MagickSetImageAlphaChannel($border_img, MW_ActivateAlphaChannel);
- 2013-04-13T09:05:18-07:00
- Forum: MagickWand for PHP
- Topic: Preserving Alpha with MagickCompositeImage
- Replies: 5
- Views: 115308
Preserving Alpha with MagickCompositeImage
I'm using MagickCompositeImage to read in a "border" image which has some partial transparency in it, but when I composite it onto my background, the partial transparency is turned to black, but the fully transparent parts are still transparent. Any tips on what I'm doing wrong? // Read in images ...
- 2013-04-12T07:11:26-07:00
- Forum: Users
- Topic: Interpolated lookup gradients with colour weighting
- Replies: 8
- Views: 12124
Re: Interpolated lookup gradients with colour weighting
Thanks for the links there. Here are some comparison images with descriptions. So this is the original Photoshop image, the gradient proportions are like so (in PHP array format since it's easily readable and what I've been using), where the array keys are percentages: $colours = array( 5 => array ...
- 2013-04-10T17:54:10-07:00
- Forum: Users
- Topic: Interpolated lookup gradients with colour weighting
- Replies: 8
- Views: 12124
Re: Interpolated lookup gradients with colour weighting
Thanks very much for your reply. I have already tried method 1 and you are exactly correct, it produces these saw-tooth type gradients. This is also the same when I generate my own gradient using PHP GD. This is actually my first time using ImageMagick at all (just today) and I find the ...
- 2013-04-10T07:04:22-07:00
- Forum: Users
- Topic: Interpolated lookup gradients with colour weighting
- Replies: 8
- Views: 12124
Interpolated lookup gradients with colour weighting
Hi, I've read a few topics like this: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=19812 And while that one does have a solution at the bottom, it's not really what I'm looking for. The colours sort of fade into eachother because of the method used and it is not a real gradient ...