ViewIcons: fix viewing animated images

This commit is contained in:
Vendicated 2026-08-17 18:17:42 +02:00
parent c58b6025c2
commit 30ba4da010
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -44,7 +44,7 @@ interface GroupDMContextProps {
const settings = definePluginSettings({
format: {
type: OptionType.SELECT,
description: "Choose the image format to use for non animated images. Animated images will always use .gif",
description: "Choose the image format to use for non-animated images. Animated images will always use .webp",
options: [
{
label: "webp",
@ -86,7 +86,7 @@ function openImage({ url, width, height, event }: OpenImageProps) {
const format = url.startsWith("/")
? "png"
: u.searchParams.get("animated") === "true"
? "gif"
? "webp"
: settings.store.format;
u.searchParams.set("size", settings.store.imgSize);