Skip to content

Commit 5083cf7

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

www/utils/screenshot.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,5 @@ const image2x = await Image.decode(raw);
2626

2727
await Deno.writeFile(`./www/static/showcase/${id}2x.jpg`, await image2x.encodeJPEG(80));
2828

29-
const jpeg1x = new URL(`${id}1x.jpg`, outputDir).pathname;
3029
const image1x = image2x.resize(image2x.width / 2, Image.RESIZE_AUTO);
31-
await Deno.writeFile(jpeg1x, await image1x.encodeJPEG(80));
30+
await Deno.writeFile(`./www/static/showcase/${id}1x.jpg`, await image1x.encodeJPEG(80));

0 commit comments

Comments
 (0)