Add support for JPEG-2000 compression with code 34712

Fixes #9618.