Skip to content

Commit

Permalink
Accept HTJ2K compressed images in STOW-RS metadata + bulkdata requests
Browse files Browse the repository at this point in the history
…fix #4296
  • Loading branch information
vrindanayak committed Dec 12, 2023
1 parent 9be4d3c commit 961362b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ abstract String supplementImagePixelModule(StoreSession session, SeekableByteCha
static CompressedPixelData valueOf(MediaType mediaType) {
return MediaTypes.equalsIgnoreParameters(mediaType, MediaTypes.IMAGE_JPEG_TYPE)
|| MediaTypes.equalsIgnoreParameters(mediaType, MediaTypes.IMAGE_JP2_TYPE)
|| MediaTypes.equalsIgnoreParameters(mediaType, MediaTypes.IMAGE_JPC_TYPE)
|| MediaTypes.equalsIgnoreParameters(mediaType, MediaTypes.IMAGE_J2C_TYPE)
|| MediaTypes.equalsIgnoreParameters(mediaType, MediaTypes.IMAGE_JPH_TYPE)
|| MediaTypes.equalsIgnoreParameters(mediaType, MediaTypes.IMAGE_JPHC_TYPE) ? JPEG
: MediaTypes.equalsIgnoreParameters(mediaType, MediaTypes.VIDEO_MPEG_TYPE) ? MPEG
Expand Down

0 comments on commit 961362b

Please sign in to comment.