Skip to content

Commit

Permalink
Add image/avif to MediaType.
Browse files Browse the repository at this point in the history
RELNOTES=`net`: Added `image/avif` to `MediaType`
PiperOrigin-RevId: 723896225
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Feb 6, 2025
1 parent 453549c commit 57fd7d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions android/guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ private static MediaType addKnownType(MediaType mediaType) {
public static final MediaType SVG_UTF_8 = createConstantUtf8(IMAGE_TYPE, "svg+xml");
public static final MediaType TIFF = createConstant(IMAGE_TYPE, "tiff");

/** <a href="https://en.wikipedia.org/wiki/AVIF">AVIF image format</a>. */
public static final MediaType AVIF = createConstant(IMAGE_TYPE, "avif");

/**
* <a href="https://en.wikipedia.org/wiki/WebP">WebP image format</a>.
*
Expand Down
3 changes: 3 additions & 0 deletions guava/src/com/google/common/net/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ private static MediaType addKnownType(MediaType mediaType) {
public static final MediaType SVG_UTF_8 = createConstantUtf8(IMAGE_TYPE, "svg+xml");
public static final MediaType TIFF = createConstant(IMAGE_TYPE, "tiff");

/** <a href="https://en.wikipedia.org/wiki/AVIF">AVIF image format</a>. */
public static final MediaType AVIF = createConstant(IMAGE_TYPE, "avif");

/**
* <a href="https://en.wikipedia.org/wiki/WebP">WebP image format</a>.
*
Expand Down

0 comments on commit 57fd7d2

Please sign in to comment.