Skip to content

Add support for heic and heif mime types #34657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,8 @@ image/bmp bmp
image/cgm cgm
image/g3fax g3
image/gif gif
image/heic heic
image/heif heif
image/ief ief
image/jpeg jpeg jpg jpe
image/ktx ktx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ void getMediaType() {
assertThat(MediaTypeFactory.getMediaType("file.js")).contains(MediaType.parseMediaType("text/javascript"));
assertThat(MediaTypeFactory.getMediaType("file.css")).contains(MediaType.parseMediaType("text/css"));
assertThat(MediaTypeFactory.getMediaType("file.wasm")).contains(MediaType.parseMediaType("application/wasm"));
assertThat(MediaTypeFactory.getMediaType("file.heif")).contains(MediaType.parseMediaType("image/heif"));
assertThat(MediaTypeFactory.getMediaType("file.heic")).contains(MediaType.parseMediaType("image/heic"));
assertThat(MediaTypeFactory.getMediaType("file.foobar")).isNotPresent();
}

Expand Down