Merge pull request #2499 from appwrite/chore-avif-site-preview

This commit is contained in:
Darshan authored and GitHub committed 2025-10-24 21:16:29 +05:30
commit 31845388b6
4 files changed
+8 -6

No files matched your search

@@ -68,7 +68,7 @@
fileId,
width: 1024,
height: 576,
output: ImageFormat.Webp
output: ImageFormat.Avif
});
}
</script>
@@ -38,7 +38,7 @@
fileId,
width: 1024,
height: 576,
output: ImageFormat.Webp
output: ImageFormat.Avif
});
}
</script>
@@ -9,7 +9,7 @@
import { Button } from '$lib/elements/forms';
import { calculateSize } from '$lib/helpers/sizeConvertion';
import { Container } from '$lib/layout';
import type { Models } from '@appwrite.io/console';
import { ImageFormat, type Models } from '@appwrite.io/console';
import { addNotification } from '$lib/stores/notifications';
import { uploader } from '$lib/stores/uploader';
import { sdk } from '$lib/stores/sdk.js';
@@ -53,7 +53,8 @@
bucketId,
fileId,
height: 128,
width: 128
width: 128,
output: ImageFormat.Avif
})
.toString() + '&mode=admin'
);
@@ -35,7 +35,7 @@
} from '@appwrite.io/pink-icons-svelte';
import FileTokensCopyUrl from './fileTokensCopyUrl.svelte';
import ManageFileTokenModal, { cleanFormattedDate } from './manageFileToken.svelte';
import { type Models } from '@appwrite.io/console';
import { ImageFormat, type Models } from '@appwrite.io/console';
import { isSmallViewport } from '$lib/stores/viewport';
import { Menu } from '$lib/components/menu';
@@ -57,7 +57,8 @@
bucketId: $file.bucketId,
fileId,
width: 640,
height: 300
height: 300,
output: ImageFormat.Avif
})
.toString() + '&mode=admin';
const getView = (fileId: string) =>