Search found 16 matches
- 2012-04-20T13:52:17-07:00
- Forum: IMagick
- Topic: colorizeImage sets white pixels to a secondary color
- Replies: 5
- Views: 15329
Re: colorizeImage sets white pixels to a secondary color
Thanks for your help! This achieves exactly what I am looking for (pretty much the image from my 2nd post above, which was done in Photoshop using a blue opaque layer with 'color' blending mode on top of a grayscale layer): $output = shell_exec('convert image.jpg -colorspace gray +level-colors ...
- 2012-04-20T10:01:49-07:00
- Forum: IMagick
- Topic: colorizeImage sets white pixels to a secondary color
- Replies: 5
- Views: 15329
Re: colorizeImage sets white pixels to a secondary color
The black border is just to show a background, i.e. that this has a white bg. Can you describe the +level-colors blue, white? Is this syntax from the command line? I'm looking to achieve this within Imagick if possible, or if it must be on the command line do you know of a method to get the output ...
- 2012-04-20T07:51:26-07:00
- Forum: IMagick
- Topic: colorizeImage sets white pixels to a secondary color
- Replies: 5
- Views: 15329
Re: colorizeImage sets white pixels to a secondary color
This is what I'm trying to ultimately achieve:
- 2012-04-20T07:28:17-07:00
- Forum: IMagick
- Topic: colorizeImage sets white pixels to a secondary color
- Replies: 5
- Views: 15329
colorizeImage sets white pixels to a secondary color
If I apply $image->colorizeImage('#0000aa', 1) to a full color image, I have a blue tinted image that retains some of the original colors - cool, as expected. If I first convert to grayscale via $image->modulateImage(100,0,100) and then apply the colorizeImage(), I get a nearly-perfect blue tinted ...
- 2012-01-27T13:29:17-07:00
- Forum: IMagick
- Topic: readImageBlob(svg) crashing apache?
- Replies: 16
- Views: 42787
Re: readImageBlob(svg) crashing apache?
I uninstalled 6.7.4-0 and recompiled/installed 6.6.2 as that had been working locally. Still could not get the segfault resolved. I then removed 6.6.2 and used PECL to uninstall imagick. Then I used apt-get to install _all_ of the required and suggested dependencies here: http://bugs.debian.org/cgi ...
- 2012-01-27T11:40:05-07:00
- Forum: IMagick
- Topic: readImageBlob(svg) crashing apache?
- Replies: 16
- Views: 42787
Re: readImageBlob(svg) crashing apache?
I downgraded to 6.7.4-0 and now am able to at least convert from .png to .jpg: $image = 'baseball.png'; $im = new Imagick(); $im->readImage($image); $im->setImageFormat("jpg"); header("Content-Type: image/jpg"); print $im; using a .svg fails with (I believe) a segmentation fault: $image = 'baseball ...
- 2012-01-27T07:38:10-07:00
- Forum: IMagick
- Topic: readImageBlob(svg) crashing apache?
- Replies: 16
- Views: 42787
Re: readImageBlob(svg) crashing apache?
I had to upgrade ImageMagick from 6.6.2 to a newer version, 6.7.x, so that some newer functions would work, and I'm getting this error again. I'm now using ImageMagick version 6.7.4 Imagick version 3.0.1 Server is Litespeed 4.0.10. PHP 5.3.8 ImageMagick is using RSVG. Compiled without OpenMP. Here ...
- 2011-12-30T19:30:42-07:00
- Forum: IMagick
- Topic: "no decode delegate" for 1 SVG, while all others work fine
- Replies: 2
- Views: 9158
Re: "no decode delegate" for 1 SVG, while all others work fi
Thanks for your help magick! How were you able to see the prefixed binary characters?
- 2011-12-29T17:22:33-07:00
- Forum: IMagick
- Topic: readImageBlob(svg) crashing apache?
- Replies: 16
- Views: 42787
Re: readImageBlob(svg) crashing apache?
The exec() worked but I couldn't get imagick to work within that virtual machine instance for the life of me. I destroyed the VM and built a new one and was able to get things working without problems. I don't know what the real issue was. Thank you very much for the help and info, hopefully ...
- 2011-12-29T17:20:31-07:00
- Forum: IMagick
- Topic: "no decode delegate" for 1 SVG, while all others work fine
- Replies: 2
- Views: 9158
"no decode delegate" for 1 SVG, while all others work fine
I wrote a script which parses SVGs and breaks them down into layers, saving the individual layers as PNGs as well as the 1 original SVG as a PNG. Ran through hundreds of SVGs without a problem, but this current file is being troublesome. I'm getting the good ol' "no decode delegate" error when I ...
- 2011-07-28T20:22:26-07:00
- Forum: IMagick
- Topic: readImageBlob(svg) crashing apache?
- Replies: 16
- Views: 42787
Re: readImageBlob(svg) crashing apache?
I have not. Does that require a recompile? If so, will a re- ./configure / make / make install with the --disable-openmp flag do it? Do I need to remove or uninstall anything first? I have not been until now but I see this as a good place to ask that question.
- 2011-07-28T20:04:27-07:00
- Forum: IMagick
- Topic: readImageBlob(svg) crashing apache?
- Replies: 16
- Views: 42787
Re: readImageBlob(svg) crashing apache?
Righto. I will sit tight and see if anyone else has any suggestions. The odd part about this for me is that I setup 2 Ubuntu servers with nearly identical setups and on 1 server this code works fine -- deployed it to production server and no-go. Everything was installed via apt-get or PECL (until ...
- 2011-07-28T19:53:13-07:00
- Forum: IMagick
- Topic: readImageBlob(svg) crashing apache?
- Replies: 16
- Views: 42787
Re: readImageBlob(svg) crashing apache?
Just tried to render that code in PHP -- I get a 324 error (empty response). Checking my error.log shows child pid xxxx exit signal Segmentation fault (11) I then saved that code into 'test.svg' and ran 'convert test.svg test.png' and got a beautiful yellow box with a 2px gray border as a PNG. So I ...
- 2011-07-28T19:42:55-07:00
- Forum: IMagick
- Topic: readImageBlob(svg) crashing apache?
- Replies: 16
- Views: 42787
Re: readImageBlob(svg) crashing apache?
Using RSVG, definitely. Here's the PHP error I see: Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `/tmp/magick-Oz1tbLmc' @ error/svg.c/ReadSVGImage/2831' in /var/www/apache2/svg/serve-layers.php:40 Stack trace: #0 /var/www/apache2/svg/serve ...
- 2011-07-28T19:11:46-07:00
- Forum: IMagick
- Topic: readImageBlob(svg) crashing apache?
- Replies: 16
- Views: 42787
Re: readImageBlob(svg) crashing apache?
Thanks anthony. That works -- I get a 2x2 pixel black box. I used the following code: <?php $im = new Imagick(); $im->readImageBlob('P2 2 2 2 2 1 1 0'); $im->setImageFormat('png'); header("Content-type: image/png"); print $im->getimageblob(); Do you have any suggestions on how I can continue testing?