Skip to content

Commit

Permalink
Merge pull request #142 from wordpress-mobile/feat/add-more-image-sup…
Browse files Browse the repository at this point in the history
…port-types

MediaUtils - Add support for heic and heif image formats
  • Loading branch information
Gerardo Pacheco authored Feb 9, 2024
2 parents 4e85ad5 + c0c7e4a commit 77d3054
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static boolean isValidImage(String url) {
}
url = url.toLowerCase(Locale.ROOT);
return url.endsWith(".png") || url.endsWith(".jpg") || url.endsWith(".jpeg") || url.endsWith(".gif")
|| url.endsWith(".webp");
|| url.endsWith(".webp") || url.endsWith(".heic") || url.endsWith(".heif");
}

public static boolean isDocument(String url) {
Expand Down

0 comments on commit 77d3054

Please sign in to comment.