misc: increase site image resolution
This commit is contained in:
1 parent
6dd13914f7
commit
8f07d4547a
2 files changed
+4
-2
No files matched your search
@@ -3,7 +3,7 @@
|
||||
import { createAvatar } from '@dicebear/core'
|
||||
import * as initials from '@dicebear/initials'
|
||||
|
||||
const sizes = [64, 128, 256, 512]
|
||||
const sizes = [48, 64, 128, 256, 512]
|
||||
|
||||
export let url: string | undefined
|
||||
export let alt: string = ''
|
||||
@@ -11,11 +11,12 @@
|
||||
export let circle: boolean = true
|
||||
|
||||
export let width: number
|
||||
export let res: number | undefined = undefined
|
||||
</script>
|
||||
|
||||
{#if url}
|
||||
<img
|
||||
src="{url}?format=webp&thumbnail={findClosestNumber(sizes, width)}"
|
||||
src="{url}?format=webp&thumbnail={findClosestNumber(sizes, res || width)}"
|
||||
{alt}
|
||||
{width}
|
||||
{title}
|
||||
|
||||
Reference in new issue
Block a user