Linus Unnebäck
8c2b9425d5
Merge pull request #663 from targos/patch-1
Delete .gitmodules
9 years ago
Michaël Zasso
2743851cff
test on node v5.x
9 years ago
Michaël Zasso
46e3646d91
Delete .gitmodules
The file has been empty since 2011.
9 years ago
Linus Unnebäck
fabf6777a4
version: 1.3.1
9 years ago
Linus Unnebäck
37da5eba75
history: 1.3.1
9 years ago
Linus Unnebäck
19a34b4b20
Merge pull request #660 from deadbeef84/windows-std-min-fix
Wrap std::min calls in paranthesis to prevent macro expansion on windows
9 years ago
Jesper Ek
ff23127e16
Add explanation to remaining std::min calls
9 years ago
Linus Unnebäck
25742bd453
readme: update installation instructions
9 years ago
Jesper Ek
6c0931fb54
Add explanation to otherwise unnecessary parens.
9 years ago
Jesper Ek
8afe39110e
Wrap std::min calls in paranthesis to prevent macro expansion on windows
Fixes #659 .
9 years ago
Linus Unnebäck
1568a31f1c
Merge pull request #655 from outsideris/fix-install-script
fix the install script to current repository
9 years ago
Outsider
63de9502e3
fix the install script to current repository
9 years ago
Linus Unnebäck
5da42e82fa
version: 1.3.0
9 years ago
Linus Unnebäck
07e2d78ebf
history: 1.3.0
9 years ago
Linus Unnebäck
cf5e5c4463
Merge pull request #569 from targos/expose-imagedata
expose ImageData constructor
9 years ago
Michaël Zasso
2884267de4
make ImageData constructor more spec-compliant
9 years ago
Michaël Zasso
f69171da9a
expose ImageData constructor
10 years ago
Linus Unnebäck
2fc1316da7
Merge pull request #652 from targos/travis
simplify travis config
9 years ago
Michaël Zasso
580521dbe2
simplify travis config
Currently, CI takes a long time because it has to compile all dependencies before running the test.
Use Ubuntu packages instead of building them from source.
9 years ago
Linus Unnebäck
7a8e6de568
1.2.11
9 years ago
Linus Unnebäck
600b01b5e9
history: 1.2.11
9 years ago
Linus Unnebäck
f10e236ef0
Merge pull request #648 from inssein/patch-2
implement blur on images (drawImage)
9 years ago
Hussein Jafferjee
85aff9e5e4
improve comment on why the offset is there
9 years ago
Linus Unnebäck
5a79f7d7fa
Merge pull request #643 from LinusU/drop-make
drop make
9 years ago
Linus Unnebäck
8d81eded2b
Merge pull request #646 from inssein/patch-1
add helper function to execute test and only fire callback once
9 years ago
Hussein Jafferjee
f8368996b8
Change to 1.4 to match chrome
9 years ago
Hussein Jafferjee
4f722ffa53
forgot to destroy context and surface
9 years ago
Hussein Jafferjee
4e9269cc34
implement blur on images (drawImage)
9 years ago
Hussein Jafferjee
abee0947e5
add helper function to execute test and only fire callback once
Fixes https://github.com/Automattic/node-canvas/issues/645
9 years ago
Linus Unnebäck
d4fab578c9
drop make
9 years ago
Linus Unnebäck
9d91527fe7
Merge pull request #640 from LinusU/mocha-std-ui
tests: use standard mocha ui
9 years ago
Linus Unnebäck
145ae05f6a
tests: use standard mocha ui
9 years ago
Linus Unnebäck
0265773fd3
version: 1.2.10
9 years ago
Linus Unnebäck
14cc0b9701
history: 1.2.10
9 years ago
Linus Unnebäck
d8f560dc80
Merge pull request #635 from zbjornson/master
Fix segfault in Canvas#jpegStream. Fix #629
9 years ago
Zach Bjornson
9ad6c41f2b
jpegStream: bugfix, tests, simplification with LinusU. Fix #629
Remove the undocumented 3rd argument of the emitters (bytes left in buffer).
Add a column to the browser tests that displays JPEGs.
Revise how buffers are allocated.
9 years ago
Linus Unnebäck
eb97ef8386
version: 1.2.9
9 years ago
Linus Unnebäck
0f61134b01
history: 1.2.9
9 years ago
Linus Unnebäck
5405e73d29
Merge pull request #622 from zbjornson/nan2
Update to nan2 and node 3+ APIs
9 years ago
Zach Bjornson
d4d3b9c724
Update to NAN 2 and node 3+ APIs
9 years ago
Linus Unnebäck
c70eadc5d0
history: 1.2.8
9 years ago
Linus Unnebäck
bb4e192b51
version: 1.2.8
9 years ago
Linus Unnebäck
607becb266
Merge pull request #612 from LinusU/test-small-fixes
test: fix up some small issues
9 years ago
Linus Unnebäck
858d79bb4c
test: fix up some small issues
10 years ago
Linus Unnebäck
6633300144
Merge pull request #604 from zbjornson/master
Replace CanvasPixelArray with Uint8ClampedArray; optimizations; bugfixes
9 years ago
Raul Ochoa
d37f9c31c1
Don't unbind onload/onerror callbacks after invoking them
From "[WHATWG HTML Living Standard]
(https://html.spec.whatwg.org/multipage/indices.html#event-load )", the definition of 'onload':
> Fired at the Window when the document has finished loading; fired at an
element containing a resource (e.g. img, embed) when its resource has finished
loading
To adhere to that specification both handlers should be called as many times as Image loads.
From Google Chrome's Developer Tools:
```js
> function handler(evt) { console.log('img handler: %s', evt.type); }
< undefined
> var img = document.createElement('img')
< undefined
> img.onload = handler
< handler(evt)
> img.onerror = handler
< handler(evt)
> img.src = 'https://www.google.com/images/errors/logo_sm_2.png '; true
< true
< img handler: load
> img.src = 'https://www.google.com/images/errors/logo_sm_2.png '; true
< true
< img handler: load
> img.src = 'https://example.com/404.png '; true
< true
< img handler: error
> img.src = 'https://example.com/404.png '; true
< true
< img handler: error
```
10 years ago
Zach Bjornson
7d9286638f
Support node <0.12 using kExternalPixelArray.
10 years ago
Zach Bjornson
43c94e43bf
Pixels with a=0 should have 0 for RGB; pixels with a=255 should have rgb for RGB.
10 years ago
Zach Bjornson
677587bd15
Remove stray logging.
10 years ago
Zach Bjornson
11f0709ec6
Fix tests "putImageData() 8" and "putImageData() 9".
Negative arguments were causing source image data to be painted wrapped-around the other side of the canvas.
10 years ago