Shadowblazen
e6dab9aaf0
Updated crossorigin settings
...
The crossorigin settings are currently breaking image tests in Firefox and Safari when the images are not cross-domain (e.g. images specified as base64 strings, or using relative pathing).
This change enables CORS on the image if and only if the image is 1) specified using absolute pathing with the HTTP or HTTPS protocol and 2) the image is from a different domain than resemble.js is being run on.
11 years ago
James Cryer
4b2766cd0c
tidy and bump
11 years ago
Norman Ma
4610e8bb36
Updated image data loader to accept ImageData directly, pixelCount typo
11 years ago
Martin Laine
7bb1c8c742
Fix how largeImageThreshold option is set
11 years ago
Martin Laine
2d11034368
Add largeImageThreshold option to control when to skip pixels
11 years ago
Alex S
3de4d49ced
Add support for cross origin
...
Both side of a cross origin request should be aware of it. It is done on
the client side through a crossOrigin attribute on the image.
http://stackoverflow.com/questions/12947361/cors-settings-for-images-in-canvas
https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image
11 years ago
James Cryer
aba174658e
Implemented output settings as suggested by amolgkulkarni
11 years ago
Chema Balsas
0cbce26e3d
Add IE support
11 years ago
James Cryer
f7c27f7bf5
Added alpha support
11 years ago
James Cryer
e5ace5ecff
Aways calculate dimension difference so that client doesn't not need to guard against undefined object.
12 years ago
Roman Bruckner
c71bbd2355
expose the difference if dimensions are not the same
12 years ago
James Cryer
9773e180bb
Updated comment header
12 years ago
Dr. Kibitz
40f531415b
Allow passing src to load image bypassing fileReader
12 years ago
Dr. Kibitz
a04472832a
Add 'use strict', fix global leak
12 years ago
James Cryer
36784309f3
better compare for images of different sizes
12 years ago
James Cryer
892770e06d
updated js header
12 years ago
James Cryer
fe90ebb111
pushing to gh-pages
12 years ago
James Cryer
610a246e75
updating demo and other tweaks
12 years ago
James Cryer
2fc2fed647
antialising sensitivity tweak
12 years ago
James Cryer
5d5df570b8
performance tweaks
12 years ago
James Cryer
f0a15916b6
I think antialising is working
12 years ago
James Cryer
04b6b74e3e
added files
12 years ago