1
Vote

Bug 72890. Jpeg Grayscale colourspace

description

Hello!
 
 
When I want use jpeg image with grayscale colourspace I throw exception on:
 
if (!(jpg.Colorspace == Colorspace.RGB && jpg.BitsPerComponent == 8))
            {
                throw new UnsupportedImageFormatException();
            }
 
 
How can I solve this problem?
 
 
Best regards!

comments

Swinburne wrote Mar 25, 2014 at 4:15 AM

We choose a correct image processing library, including jpeg editing tool, as well as the right methods for image color adjustment, we can easily switch the image color mode, like RGB to CMYK, Monochrom to Grayscale.