Skip to content

Commit b7e08d3

Browse files
committed
ficx
1 parent 5a37c68 commit b7e08d3

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/app/opengraph-image.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,26 @@ export const size = {
1414
export const contentType = "image/png";
1515

1616
async function loadImage(filename: string): Promise<string> {
17-
const path = join(process.cwd(), "public", "images", "landing", filename);
17+
const path = join(
18+
process.cwd(),
19+
"public",
20+
"images",
21+
"landing",
22+
"showcase",
23+
filename,
24+
);
1825
const data = await readFile(path);
1926
return `data:image/png;base64,${data.toString("base64")}`;
2027
}
2128

2229
export default async function Image() {
2330
const [img1, img2, img3, img4, img5, img6] = await Promise.all([
24-
loadImage("showcase-vangogh.png"),
25-
loadImage("showcase-hokusai.png"),
26-
loadImage("showcase-dali.png"),
27-
loadImage("showcase-comic.png"),
28-
loadImage("showcase-pixel.png"),
29-
loadImage("showcase-warhol.png"),
31+
loadImage("vangogh.png"),
32+
loadImage("hokusai.png"),
33+
loadImage("dali.png"),
34+
loadImage("comic.png"),
35+
loadImage("pixel.png"),
36+
loadImage("warhol.png"),
3037
]);
3138

3239
const images = [img1, img2, img3, img4, img5, img6];

0 commit comments

Comments
 (0)