I could not upload an image to test in the mnist demo. pica.js would throw an exception because preview image was empty. This was because the preview image was being created in js via new Image() and then assigned its src, but not being permitted to load before attempting to read its width and height.
I could not upload an image to test in the mnist demo. pica.js would throw an exception because preview image was empty. This was because the preview image was being created in js via new Image() and then assigned its src, but not being permitted to load before attempting to read its width and height.