brunobar79 / J-I-C

J I C is a Javascript Image Compressor using HTML5 Canvas & File API that allows you to compress your jpeg & png images before uploading to the server (100% client-side and no extra libraries required!)
http://makeitsolutions.com/labs/jic/
MIT License
857 stars 196 forks source link

JIC error #53

Open shahz5678 opened 7 years ago

shahz5678 commented 7 years ago

Hey after reading your answer on SO I tried using JIC but I am currently getting the following error when I select a file which should get compressed;

(index):109 Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)'

I have also left a question related to this problem here

Any advice on why I am getting such an error. I am actually quite new to JS itself hence I am a bit slow in error handling.

Gab0o777 commented 7 years ago

Sounds to me like you're not using an image element but rather just some variable with the source value, can you provide a code example so we can check the error? without the actual code that's all I can tell you.

Roeefl commented 6 years ago

Solved?