This commit is contained in:
Morten Olsen
2024-03-30 20:53:01 +01:00
commit 98e39a54cc
94 changed files with 11654 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { getImage } from 'astro:assets';
import { data } from '@/data/data.js';
const imageSizes = [16, 32, 48, 64, 96, 128, 256, 512];
const pngs = await Promise.all(
imageSizes.map(async (size) => {
return {
...(await getImage({
src: data.profile.image,
format: 'png',
width: size,
height: size,
})),
size: `${size}x${size}`,
};
}),
);
const icons = {
pngs,
};
export { icons };