Skip to content

Commit

Permalink
add gif mediatype (#1018)
Browse files Browse the repository at this point in the history
* add gif mediatype

* update changelog
  • Loading branch information
vincentsarago authored Nov 4, 2024
1 parent 6bc1429 commit cc607c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@

* add OGC Tiles `/tiles` and `/tiles/{tileMatrixSet}` endpoints

* add `gif` media type

### titiler.mosaic

* Rename `reader` attribute to `backend` in `MosaicTilerFactory` **breaking change**
Expand Down
2 changes: 2 additions & 0 deletions src/titiler/core/titiler/core/resources/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class MediaType(str, Enum):
csv = "text/csv"
openapi30_json = "application/vnd.oai.openapi+json;version=3.0"
openapi30_yaml = "application/vnd.oai.openapi;version=3.0"
gif = "image/gif"


class ImageDriver(str, Enum):
Expand All @@ -43,6 +44,7 @@ class ImageDriver(str, Enum):
webp = "WEBP"
jp2 = "JP2OpenJPEG"
npy = "NPY"
gif = "GIF"


class ImageType(str, Enum):
Expand Down

0 comments on commit cc607c3

Please sign in to comment.