Add apng support

This commit is contained in:
Ategon 2025-02-11 03:05:15 -05:00
parent 44b027e8b2
commit bccb0ec008
2 changed files with 2 additions and 0 deletions

View file

@ -69,6 +69,7 @@ export default function EditorMenuBar({ editor }: EditorMenuProps) {
const allowedTypes = [ const allowedTypes = [
"image/jpeg", // JPEG images "image/jpeg", // JPEG images
"image/png", // PNG images "image/png", // PNG images
"image/apng", // APNG images
"image/gif", // GIF images "image/gif", // GIF images
"image/webp", // WebP images "image/webp", // WebP images
"image/svg+xml", // SVG images "image/svg+xml", // SVG images

View file

@ -129,6 +129,7 @@ export default function Editor({
const allowedTypes = [ const allowedTypes = [
"image/jpeg", // JPEG images "image/jpeg", // JPEG images
"image/png", // PNG images "image/png", // PNG images
"image/apng", // APNG images
"image/gif", // GIF images "image/gif", // GIF images
"image/webp", // WebP images "image/webp", // WebP images
"image/svg+xml", // SVG images "image/svg+xml", // SVG images