$.getImageData not working because img-to-json is down?

岁酱吖の 提交于 2019-12-10 19:44:02

问题


I'm trying to do some image processing on external images using Pixastic. I know that I need to use $.getImageData to do operations on external images because otherwise you'll get DOM Exception 18 due to the canvas being "tainted by cross-origin data". Unfortunately, the appspot service "img-to-json" that $.getImageData uses is down with a "503 Over Quota" error, and has been for several days. I found another service called "img2json" that was actually working yesterday for a bit, but I'm not entirely sure it does the same thing (I think img2json only gives you the basic metadata as opposed to actual pixel data). So, my actual questions are:

  • Are "img2json" and "img-to-json" the same service? If so, maybe I can just modify the $.getImageData code to use img2json.

  • Is it common to see appspot applications being down like this? What are the chances of img-to-json coming back up in the recent future?

  • If not, how easy would it be to temporarily download these external images to the server, do the image processing on them, then delete them? Is it possible to do that with only javascript?

来源:https://stackoverflow.com/questions/12238581/getimagedata-not-working-because-img-to-json-is-down

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!