Anton Konovalov
397a80450e
Add pure black & white colors to image analysis.
8 years ago
james.cryer
33f9114d0a
Resolves bug address by PR #70 . Removes defensive CORS from e6dab9aaf0
and optimisation a1a41fc526
. Works for me.
9 years ago
Anton Konovalov
5f408198b6
Add alpha to analysis result.
9 years ago
Anton Sivolapov
15d2b12d08
add new comparison option "scaleToSameSize"
9 years ago
Alex Kanunnikov
a1a41fc526
Large Base64 image files performance tweak
9 years ago
Andrew Carreiro
9211a80d0e
Added tests, modified resemble to add error state for loaded images
9 years ago
Andrew Carreiro
6a3a852358
Surfacing raw mismatch percentage to help with large image diffs
9 years ago
james.cryer
1498110798
missing semi-colon
9 years ago
benwick
8c759b5ac5
Fix unloaded image issues, mostly in IE and Safari
...
Every now and then, the hiddenImage.onload function will fail, because the width and height of the hiddenImage are zero. The IE will throw an IndexSizeError in line 161, when it tries to get the image data. Safari fails silently. The reason for this is, that only the complete property is evaluated to consider the manual firing of the onload callback. But it can happen sometimes, that the complete property is true, but width and height are not calculated yet. So I added an extra test for the naturalWidth of the image. See also here: http://stackoverflow.com/questions/1977871/check-if-an-image-is-loaded-no-errors-in-javascript#answer-1977898
9 years ago
Will Binns-Smith
127e8be80e
Add UMD wrapper for module loaders
9 years ago
Thomas Steur
75ba9c1a28
Fix ignore nothing still defines a tolerance
10 years ago
Pascal Borreli
7625896bfb
Fixed typos
10 years ago
E.Azer Koçulu
85e2fe1228
Read document variable by checking if it exists
10 years ago
Dan Vanderkam
9102fa71b9
Record the bounding box of the diff while calculating it.
10 years ago
James Cryer
cf3661ab05
Renamed difference intensity properties
10 years ago
Kamil Bielawski
09c923dbba
Added two distance-based types of errorPixelTransform
10 years ago
John Duane
b6fe577f6b
Call hiddenImage.onload if image is cached.
10 years ago
James Cryer
47281658d2
fixes #26 Transparency default value bug when zero
10 years ago
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.
10 years ago
James Cryer
4b2766cd0c
tidy and bump
10 years ago
Norman Ma
4610e8bb36
Updated image data loader to accept ImageData directly, pixelCount typo
10 years ago
Martin Laine
7bb1c8c742
Fix how largeImageThreshold option is set
10 years ago
Martin Laine
2d11034368
Add largeImageThreshold option to control when to skip pixels
10 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.
11 years ago
Roman Bruckner
c71bbd2355
expose the difference if dimensions are not the same
11 years ago
James Cryer
9773e180bb
Updated comment header
11 years ago
Dr. Kibitz
40f531415b
Allow passing src to load image bypassing fileReader
11 years ago
Dr. Kibitz
a04472832a
Add 'use strict', fix global leak
11 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