Search found 3 matches

by jamesmillerp
2014-08-06T11:21:20-07:00
Forum: IMagick
Topic: Cropimage black & white output issue
Replies: 4
Views: 8997

Re: Cropimage black & white output issue

Thanks, but actually that doesn't matter.

I've found the solution for the issue.

I've added this call before cropImage call.

Code: Select all

$img->setImageBackgroundColor('skyblue');
And it has fixed the issue with black&white output. Thanks anyway.
by jamesmillerp
2014-08-05T11:27:14-07:00
Forum: IMagick
Topic: Cropimage black & white output issue
Replies: 4
Views: 8997

Re: Cropimage black & white output issue

Hi fmw42, Thanks for the quick reply. Here is the code snippet that crops a tile from given image: $img = new Imagick(); $img->readImage($sourcePath); $iW = $img->getImageWidth (); $iH = $img->getImageHeight(); $bW = $iW/$xNum; $bH = $iH/$yNum; $cropWidth = ($iW - $x*$bW); $cropWidth = $cropWidth >=...
by jamesmillerp
2014-08-04T15:32:28-07:00
Forum: IMagick
Topic: Cropimage black & white output issue
Replies: 4
Views: 8997

Cropimage black & white output issue

In some cases CropImage returns black&white image despite I've provided full color image.

Is this an issue with CropImage method or do I need to use some channels and filters before cropping?