Skip to content

Commit

Permalink
jpg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farizrahman4u committed Apr 5, 2022
1 parent 04317c6 commit a4566b9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions hub/htype.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
VIDEO_COMPRESSIONS,
AUDIO_COMPRESSIONS,
BYTE_COMPRESSIONS,
COMPRESSION_ALIASES,
)

DEFAULT_HTYPE = "generic"
Expand Down Expand Up @@ -85,15 +86,17 @@
_image_compressions.remove("dcm")

HTYPE_SUPPORTED_COMPRESSIONS = {
"image": _image_compressions + BYTE_COMPRESSIONS,
"video": VIDEO_COMPRESSIONS,
"audio": AUDIO_COMPRESSIONS,
"text": BYTE_COMPRESSIONS,
"list": BYTE_COMPRESSIONS,
"json": BYTE_COMPRESSIONS,
"image": _image_compressions + BYTE_COMPRESSIONS + list(COMPRESSION_ALIASES),
"video": VIDEO_COMPRESSIONS[:],
"audio": AUDIO_COMPRESSIONS[:],
"text": BYTE_COMPRESSIONS[:],
"list": BYTE_COMPRESSIONS[:],
"json": BYTE_COMPRESSIONS[:],
"dicom": ["dcm"],
}



# these configs are added to every `htype`
COMMON_CONFIGS = {
"sample_compression": None,
Expand Down

0 comments on commit a4566b9

Please sign in to comment.