desandro/close-pixelate — pull request #3 by wjohnald (2012-05-06 00:31:39+00:00)
Title: Data urls

Hello desandro,

I was recently using this library for a page on which I had a drag-and-drop interface that loaded local images. I had one image on the page, and as a FileReader would load a local copy, the image src attribute was a data url. I ran into the problem that the computed height of the new canvas object created by close-pixelate was always 0. I have made a modification that loads the img element's src attribute into an Image object, and ClosePixellate does not call render() until the Image has completely loaded. This has resolved the issue.

Please let me know if there is a sample you would like me to provide or if you would like more information about what I am using this library for.

Thanks!
Wes