Uncaught ReferenceError: JpegImage is not defined
lucasguaru opened this issue · 4 comments
When choosing an image, it doesn't load it and I see JpegImage is not defined on console.
When I changed the [jpg.js](<script type="text/javascript" src="http://notmasteryet.github.io/jpgjs/jpg.js"></script>) from http to https it worked.
JPG to Magic Eye HTML
trying to make this work as well - can you clarify how you fixed it? Where are you changing the above? I changed it as well while inspecting the button but had no luck. Thank you!
You can run on console (on windows hit F12 for devtools) and run the following:
`var script = document.createElement("script")
script.type = "text/javascript";
script.src = 'https://notmasteryet.github.io/jpgjs/jpg.js';
document.getElementsByTagName("head")[0].appendChild(script);`
This will add the script with https to the page
Thanks, I tried this but got:
"jpg.js:432 Uncaught TypeError: Cannot read property '0' of undefined
at quantizeAndInverse (VM108 jpg.js:432)
at buildComponentData (VM108 jpg.js:570)
at constructor.parse (VM108 jpg.js:799)
at JpegImage.parse (VM108 jpg.js:66)
at JpegImage. (VM108 jpg.js:59)
at loadURLasArrayBuffer (VM108 jpg.js:25)
at JpegImage.load (VM108 jpg.js:58)
at FileReader. (jpg-to-magiceye.html:106)
"