Skip to content

Commit 15b9502

Browse files
Update www/utils/screenshot.ts
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
1 parent 24e7f62 commit 15b9502

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

www/utils/screenshot.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ await browser.close();
2424
// convert to jpeg
2525
const image2x = await Image.decode(raw);
2626

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));
27+
await Deno.writeFile(`./www/static/showcase/${id}2x.jpg`, await image2x.encodeJPEG(80));
3128

3229
const jpeg1x = new URL(`${id}1x.jpg`, outputDir).pathname;
3330
const image1x = image2x.resize(image2x.width / 2, Image.RESIZE_AUTO);

0 commit comments

Comments
 (0)