Gray Scale Colorspace Conversion Failure

Hi again,

I'm test driving the library for working with gray scale electron microscope images. During my testing, I ran into the following issue:

import numpy as np
import simplejpeg
x = np.zeros((7,7,1), dtype=np.uint8, order="C")
img = simplejpeg.encode_jpeg(x, colorspace="GRAY")

OUTPUT

Traceback (most recent call last):
  File "test2.py", line 5, in <module>
    img = simplejpeg.encode_jpeg(x, colorspace="GRAY")
  File "simplejpeg/_jpeg.pyx", line 472, in simplejpeg._jpeg.encode_jpeg
ValueError: Unsupported color conversion request

Other input values worked such as (7,7,3) with "RGB" and (7,7,4) with "CMYK". Am I doing something wrong? Thanks for any help!

Will