Search found 2 matches

by Madnesz
2012-06-17T04:58:08-07:00
Forum: Bugs
Topic: Setting TrueColor on Grayscale JPEG
Replies: 1
Views: 3276

Re: Setting TrueColor on Grayscale JPEG

Fixed it! The key was to use:

$img = new Imagick();
$img->setType(6); (instead of $img->setImageType() after loading the image)
$img->readImage($source);

It now outputs an image of type 6.
by Madnesz
2012-06-17T03:51:28-07:00
Forum: Bugs
Topic: Setting TrueColor on Grayscale JPEG
Replies: 1
Views: 3276

Setting TrueColor on Grayscale JPEG

When loading a greyscale image into memory, it is automatically changed into image type to 2 (GrayScale). As I cannot use greyscale JPG's in further processing, I need to keep its original image type 6 (TrueColor). However, I cannot find any working method to do so. Here's what I get when loading a ...