lukasklein / itunes-colors

Porting Panic's iTunes album art color algortithm (http://www.panic.com/blog/2012/12/itunes-11-and-colors/) to JavaScript
188 stars 10 forks source link

core function shoul get image argument not path #5

Open lapsio opened 11 years ago

lapsio commented 11 years ago

To make code more flexible for advanced webapps, ImageAnalyzer should get Image object, not path to avoid doubled image loading in case of previous canvas usage. Eventually switch(typeof image) to select proper behaviour. Also in case of offline usage init should be executed at the end, as with local Apache setup onload may fire before all function are defined.