GithubHelp home page GithubHelp logo

risent / getimagedata Goto Github PK

View Code? Open in Web Editor NEW

This project forked from betamax/getimagedata

1.0 1.0 0.0 1.08 MB

Cross domain getImageData work around and jQuery plugin

Home Page: http://www.maxnov.com/getimagedata/

getimagedata's Introduction

$.getImageData

Version: 0.3

Please be aware that while this plugin is still useful, there is a method to do this without any plugins called CORS. You can see a demo here. It's currently supported by Firefox 3.5+, Safari 4+, Chrome and IE8+. This plugin will remain useful for older browsers and for getting any image without restrictions, e.g. Creative Commons images from Flickr.

This project is aimed at developers who don't have the ability, don't want to or don't have time to create a proxy script on their server to get images from different domains or origins. It enables pixel level access to images from different origins. It works by sending a JSONP request with the URL of the image to Google's servers via the Google App Engine. The server then converts the image into base64 encoded data URL and sends the image back as a JSON object. This means that the image can be locally included on the website and therefore it can be edited by the canvas tag.

For detailed usage instructions and examples please see: http://www.maxnov.com/getimagedata/

To Do

  • Add more server examples - the more the better!
  • Add fallback servers so if the Google App Engine is down for whatever reason (quota exceeded) then it can fallback to one of them - Please let me know if you can host one.
  • More demos that show of a bit more what is possible (Idea: 3D cube with images from Flickr on it - Tried this out in three.js and it's possible to add image textures from another domain without the work-around.).

Changelog

Version 0.3 - 13/01/11

  • Created a node.js server. Read more about it here
  • Removed the reliance on my domain maxnov.com - Only uses GAE servers now in case my server goes down again

Version 0.2 - 13/09/10

  • Added two example servers, written in PHP and Python - Please contribute by adding your own!!
  • Added ability to specify the server URL using the server parameter

Version 0.1 - 3/09/10

  • Created script and Google App Engine Back-end

getimagedata's People

Contributors

betamax avatar

Stargazers

Risent  avatar

Watchers

Risent  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.