* Don't use MCT with RGB in `encode_pixel_data()` * Remove `bytearray` as image data source in `encode_pixel_data()` and `encode_buffer()`
2.2.0
* Adds support for encoding bytes or bytearray * Fixes encoding using the JP2 format * Changes `nr_components` parameters to `samples_per_pixel` to be more in line with DICOM * Encoding with `compression_ratios=[1]` or `signal_noise_ratios=[0]` should now result in lossless encoding