mjrlowe / terminal_images

A Deno module and CLI tool for printing images to the console. 🖼️
MIT License
51 stars 3 forks source link

File type not supported? #5

Closed xi-pinmping closed 2 years ago

xi-pinmping commented 2 years ago

Hi, I set this up according to instruction and have deno added to my path correctly, but still when I try the test command I get an error.

❯ terminal_images https://deno.land/images/hashrock_simple.png

error: Uncaught (in promise) Error: File type not supported.
    throw new Error("File type not supported.");
          ^
    at decodeImageFromRawFile (https://q5pm4pnchs74pdedmsydy4m2ibqanuqh4qsfdwlpd5y37miq.arweave.net/h17OP-aI8_v8eMg2SwPHGaQGAG0-gfkJFHZbx9xv7EQ/decode.ts:28:11)
    at decodeImageFromPath (https://q5pm4pnchs74pdedmsydy4m2ibqanuqh4qsfdwlpd5y37miq.arweave.net/h17OP-aI8_v8eMg2SwPHGaQGAG0-gfkJFHZbx9xv7EQ/decode.ts:14:16)
    at async getImageStrings (https://q5pm4pnchs74pdedmsydy4m2ibqanuqh4qsfdwlpd5y37miq.arweave.net/h17OP-aI8_v8eMg2SwPHGaQGAG0-gfkJFHZbx9xv7EQ/mod.ts:58:20)
    at async printImage (https://q5pm4pnchs74pdedmsydy4m2ibqanuqh4qsfdwlpd5y37miq.arweave.net/h17OP-aI8_v8eMg2SwPHGaQGAG0-gfkJFHZbx9xv7EQ/mod.ts:339:25)
    at async https://q5pm4pnchs74pdedmsydy4m2ibqanuqh4qsfdwlpd5y37miq.arweave.net/h17OP-aI8_v8eMg2SwPHGaQGAG0-gfkJFHZbx9xv7EQ/cli.ts:42:3

Any help greatly appreciated thanks!

mjrlowe commented 2 years ago

Hiya, sorry, the image url got changed. Try terminal_images https://deno.land/images/artwork/hashrock_simple.png. I'll update the docs with the correct url soon.