I have two questions:
-
Is there a way I can load an image from a visitor’s computer using a file input and make it accessible from JavaScript to perform operations on it? (must be compatible with at least IE 7)
-
Do browsers provide functions to analyse pictures like the PHP library GD does or are there libraries that can do it? (getColorAt(x, y), etc)
I need to determine the dominant hue of a wallpaper before I put it in my gallery. Most free web hosting services only allow 16 Megabytes of RAM per user, so this has to be done on client side.
You would need to use either the File API, which isn’t supported by IE7, or a plug-in (e.g. a Java applet).
It is possible to get colour data via canvas, but again, no support for old-IE.