Error converting Image to SingleChannel

I’d like to convert the image I’m getting from a mac system camera to greyscale in order to save disk usage.

I first convert the image to greyscale using the Image::convertedToFormat method and specifying SingleChannel.

However, when I call the ImageComponent.setImage in order to display the image, I get the error:

CGImageCreate: invalid image bits/pixel: 8.

Any ideas on this?

Hi @babazaroni

I’ve just pushed a fix for this to the develop branch.