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

Error while uploading #10

Closed Bill-Niz closed 8 years ago

Bill-Niz commented 10 years ago

Hi ,when i try to upload my image i've got this error :

InvalidCharacterError: String contains an invalid character JIC.js:105

in atob(data)

Thks

brunobar79 commented 10 years ago

It seems like some of the variables used in line 105 is generating the problem, you should check out the values for:

BTW, is this happening with a particular image only?

Bill-Niz commented 10 years ago

After further investigation, it seems that when i compress 70% or less var data = cvs.toDataURL(type); gives data = "data:,"

brunobar79 commented 9 years ago

Can you build a scenario (plunkr maybe?) to reproduce this issue? I'm able to compress at any % without any issues...

brunobar79 commented 8 years ago

Closing this since it has been inactive for a long time.