We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24e7f62 commit 15b9502Copy full SHA for 15b9502
1 file changed
www/utils/screenshot.ts
@@ -24,10 +24,7 @@ await browser.close();
24
// convert to jpeg
25
const image2x = await Image.decode(raw);
26
27
-const outputDir = new URL("../static/showcase/", import.meta.url);
28
-
29
-const jpeg2x = new URL(`${id}2x.jpg`, outputDir).pathname;
30
-await Deno.writeFile(jpeg2x, await image2x.encodeJPEG(80));
+await Deno.writeFile(`./www/static/showcase/${id}2x.jpg`, await image2x.encodeJPEG(80));
31
32
const jpeg1x = new URL(`${id}1x.jpg`, outputDir).pathname;
33
const image1x = image2x.resize(image2x.width / 2, Image.RESIZE_AUTO);
0 commit comments