Benjamin Byholm
003e803c3a
Crude PDF stream implementation
9 years ago
Zach Bjornson
6edfe44d53
Clamp JPEG buffer size. Fixes #674
9 years ago
Zach Bjornson
d4b794561c
Properly clamp quality in toDataURL
9 years ago
Linus Unnebäck
9b58be5e8a
expose freetype version
9 years ago
Linus Unnebäck
bef29a3271
strict mode
9 years ago
Zach Bjornson
e54183d8d4
Make toDataURL more spec-compliant:
* Use default arguments when undefined arguments are passed.
* Throw TypeError on first invalid argument
* Accept a number 'encoderOptions' as the quality
* Fall through to image/png if an unsupported encoding is requested
* Return "data:," if the canvas has no pixels
* Lower-case the format before testing for support
9 years ago
Zach Bjornson
d306aa3665
Add data URI jpeg support ( fixes #31 )
9 years ago
Michaël Zasso
f69171da9a
expose ImageData constructor
10 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
858d79bb4c
test: fix up some small issues
9 years ago
Zach Bjornson
b4a05d7892
Replace CanvasPixelArray with Uint8ClampedArray to meet spec.
Added some argument testing/manipulation to match WebKit/Moz behaviors.
Additionally benchmarked:
* branching on `if (a == 0 || a == 255)`, as it is
* not branching (always doing the alpha calculation)
* Mozilla's implementation found here: https://dxr.mozilla.org/mozilla-central/source/dom/canvas/CanvasRenderingContext2D.cpp#5083
Mozilla's is insignificantly faster (p=0.17) :) so left it as-is.
10 years ago
Miguel Mota
b085da2267
package => packageJson
10 years ago
Enno Boland
bee3774333
export canvas.CanvasPixelArray instead of canvas.PixelArray which is undefined
11 years ago
Daniel Beardsley
d72c1bbf02
JPEGStream: add progressive mode option
Progressive jpegs have several very useful advantages over baseline
jpegs:
* Slightly smaller for the same quality (3-7%)
* Load much faster in most browsers.
This adds the `options.progressive` option to the
canvas.jpegCreateStream() function.
12 years ago
Seth Fitzsimmons
6ba391fe35
Load version from package.json
12 years ago
Moritz Peters
3cc99d5f98
Fix typo in context2d for imageSmoothingEnabled
getter instead of setter.
12 years ago
TJ Holowaychuk
d7d4abe2ad
add Context2d#imageSmoothingEnabled=
12 years ago
TJ Holowaychuk
f240262a81
Release 1.0.0
12 years ago
TJ Holowaychuk
dce07d5023
refactor .useFont()
12 years ago
Julian Viereck
1d3a99d85a
Add support to load fonts from file.
12 years ago
TJ Holowaychuk
0d39dae66c
add Canvas#{png,jpeg}Stream() alias of create* legacy methods
create* is annoying
12 years ago
TJ Holowaychuk
64af9b201d
remove old 0.4.x binding support. Closes #197
12 years ago
TJ Holowaychuk
9639672fab
Release 0.13.1
13 years ago
TJ Holowaychuk
9ad38b1e86
Release 0.13.0
13 years ago
Nathan Rajlich
7cf35c8396
export the "gifVersion" when compiled with gif support
13 years ago
Nathan Rajlich
ba234eaae1
export the "jpegVersion" when compiled with jpeg support
13 years ago
TJ Holowaychuk
5ed27bff1f
Release 0.12.1
13 years ago
TJ Holowaychuk
e0b6dd6fcb
Release 0.12.0
13 years ago
TJ Holowaychuk
fc34add281
Release 0.11.3
13 years ago
TJ Holowaychuk
1c85f5ef39
Release 0.11.2
13 years ago
TJ Holowaychuk
081b87f304
Release 0.11.1
13 years ago
TJ Holowaychuk
47e9ea1bc2
Release 0.11.0
13 years ago
TJ Holowaychuk
9b6c6a8b1d
Release 0.10.3
13 years ago
Tj Holowaychuk
b63c7db9f4
Release 0.10.2
13 years ago
Tj Holowaychuk
f866dd8883
Fixed: Context2d setters with invalid values ignored
13 years ago
Tj Holowaychuk
f61efb39b6
Release 0.10.1
13 years ago
Tj Holowaychuk
6361fdf58e
Release 0.10.0
13 years ago
Robert Sköld
46bda423f8
Added a test (and fix) for a regression with gradients
13 years ago
Robert Sköld
17080848ba
Check for both CanvasGradient and CanvasPattern in ctx.strokeStyle and ctx.fillStyle.
13 years ago
Robert Sköld
559bd9d572
Started on ctx.createPattern() support.
13 years ago
Tj Holowaychuk
6cd403eb9e
Release 0.9.0
13 years ago
Tj Holowaychuk
bcc3f6a98a
remove sync arg for now
13 years ago
Tj Holowaychuk
1f60f0ad3b
fixed createJPEGStream() "options" global
13 years ago
Tj Holowaychuk
ec87f5ae85
tweak png/jpeg stream examples in source
13 years ago
Elijah Hamovitz
93f2145823
updated documentation for createJPEGStream
13 years ago
Elijah Hamovitz
b644873eab
added support for writing JPEGs
13 years ago
Tj Holowaychuk
a0e45d449f
Fixed js-land instanceof
causes issues with several Canvas modules
13 years ago
Tj Holowaychuk
d444f51e48
Release 0.8.3
13 years ago
Tj Holowaychuk
a47e9524e5
Release 0.8.2
13 years ago
Tj Holowaychuk
a3f65a3914
Release 0.8.1
13 years ago