Rod Vagg
9b62e5f64e
beginning nan@1.0.0 conversion
11 years ago
King Koopa
b0d70c5baa
Restore Uintiness
11 years ago
King Koopa
8dbdd009b5
Runs on new v8.
11 years ago
tiagoalves
d920c12b08
Readjusting the amount of allocated memory. Fixes #367
11 years ago
King Koopa
7831d74f57
Update for 0.11.9
11 years ago
Stefan Lau
bc6df356f5
fix argument index for filter parameter
11 years ago
Sascha Gehlich
d30145b70b
Use node::MakeCallback() instead of v8::Function::Call()
11 years ago
King Koopa
14d9f587b6
Added another optional argument for setting row filters.
12 years ago
King Koopa
e2a5ed2b05
Cleaned up code and added the same fix to Canvas::StreamPngSync
12 years ago
King Koopa
50d0c5c55f
Added compression level argument to Canvas::toBuffer
12 years ago
King Koopa
c3ed7faca1
Initial commit of extracted PNG creation.
12 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
mscdex
9f5ce29777
Fix immediate variable reassignment
12 years ago
Rod Vagg
2354d9bb8c
0.11.4+ compatibility using NAN
See https://github.com/rvagg/nan
12 years ago
Infinite Whiteboard
13b8f41141
Added backwards compatibility through conditional compilation.
12 years ago
Infinite Whiteboard
14a19421d2
Patch for Node 0.11.3
12 years ago
Nathan Rajlich
8a5349e525
explicitly cast the after work callback function to "uv_after_work_cb"
for node >= v0.9.4 compat
12 years ago
Chris Spencer
cfc6dfd714
Call cairo_surface_finish in ~Canvas when pdf
Fixes an issue where when a pdf surface isn't buffered and then is
garbage collected, the toBuffer can be called and attempt to realloc
the destroyed closure.
12 years ago
Nathan Rajlich
cdb2421812
build: begin making gyp file work on unix
13 years ago
TJ Holowaychuk
3ebc55a5e6
Fixed: free closure and surface in ~Canvas
13 years ago
TJ Holowaychuk
03d1cacf9c
Added `Canvas#type` getter
13 years ago
TJ Holowaychuk
a063907832
Added quick PDF support
need to clean things up, add async support, test images etc. I believe
some guys forked node-canvas to add some kind of image caching
for when an image appears several times within a PDF document, though
that may be out of scope
13 years ago
Philippe Plantier
550011e25e
Use libuv instead of EIO so that it builds on node.js >= 0.7.0
13 years ago
Tj Holowaychuk
a4ed9c5edd
tweak styling
13 years ago
Tj Holowaychuk
a50ffa1f27
wrap with HAVE_JPEG
13 years ago
Elijah Hamovitz
be9b2ee411
removed errant TODOs, reconsidered error handling
13 years ago
Elijah Hamovitz
b644873eab
added support for writing JPEGs
13 years ago
Nathan Rajlich
de520fcece
Try to detect when EIO_custom changed it's signature.
Should also be a part of #115 and #120 .
13 years ago
Tj Holowaychuk
15c558bdeb
Revert "Fix compilation on MacOSX gcc 4.2.1 environment."
This reverts commit 5c5db2972f
.
14 years ago
Syoyo Fujita
5c5db2972f
Fix compilation on MacOSX gcc 4.2.1 environment.
14 years ago
Tj Holowaychuk
1f5350ad69
ws
14 years ago
Tj Holowaychuk
bcc1b0c360
no need for ->handle_ here
14 years ago
Tj Holowaychuk
98c42b0a95
misc refactoring
14 years ago
Tj Holowaychuk
561938a6df
removed V8::AdjustAmountOfExternalAllocatedMemory() call from toBuffer()
our end result is a Buffer, which invokes this itself so we shouldnt need this
14 years ago
atomizer
6f08e9e6c8
proper memory adjust when resizing
14 years ago
atomizer
00120a885b
make v8 more aware of memory allocations
14 years ago
Tj Holowaychuk
b86c3cd321
move closure.h down. Closes #80
14 years ago
Tj Holowaychuk
2663ce0b74
refactored toBuffer()
14 years ago
Tj Holowaychuk
4981111190
added closure_init()
14 years ago
Tj Holowaychuk
3a74a43351
revert toBuffer() changes
14 years ago
Tj Holowaychuk
05708b7657
HandleScope fixes
14 years ago
Tj Holowaychuk
79361a5e4d
misc
14 years ago
Tj Holowaychuk
1c6cfd3c48
zero closure
14 years ago
Tj Holowaychuk
fde7404e08
Added closure_destroy(), and implemented some ToBuffer() fixes by Olaf
14 years ago
Tj Holowaychuk
b7c810f44e
Removed BUFFER_DATA macro
14 years ago
Tj Holowaychuk
804eeb673c
fixed segfault
14 years ago
Tj Holowaychuk
9221d3a403
Fixed canvas resizing. Closes #57
14 years ago
Tj Holowaychuk
bf7e04afbd
Unref() canvas
14 years ago
Tj Holowaychuk
cdfca98203
Misc refactoring
14 years ago
Tj Holowaychuk
228aafec7e
Fixed constructors
14 years ago