TJ Holowaychuk
|
69d4eb3987
|
slight refactor
|
13 years ago |
c-spencer
|
03584c3307
|
Improve Image mode API
|
13 years ago |
c-spencer
|
4c5962b90e
|
Add clearData method to handle reassignment of src, and clean up mime data memory handling.
|
13 years ago |
c-spencer
|
cc994d2d8d
|
Improve how _data_len is managed and use to adjust memory, hide more of mime API behind cairo version conditional.
|
13 years ago |
c-spencer
|
8b8ee7f017
|
Add optional mime-data tracking to Image.
|
13 years ago |
c-spencer
|
d5838bc4aa
|
Refactor JPEG decoding into decodeJPEGIntoSurface
|
13 years ago |
TJ Holowaychuk
|
56d49559de
|
clean up free()s
|
13 years ago |
TJ Holowaychuk
|
ba94a33d74
|
live_data -> _data
|
13 years ago |
David Björklund
|
c9f991b8de
|
Fixes the Image memory leak (#150). It is basically the fix from @AllYearbooks fork without the mime-stuff.
|
13 years ago |
Tj Holowaychuk
|
f8ffa3fdb5
|
replaced seek with fstat()
|
13 years ago |
Tj Holowaychuk
|
323e24ba42
|
clean up styling
|
13 years ago |
obarthel
|
4cfb7a61b2
|
Added error cleanup code to the JPEG loader functions
|
13 years ago |
Tj Holowaychuk
|
762f8865de
|
misc cleanup
|
13 years ago |
Tj Holowaychuk
|
f72f8072ab
|
Added data uri support. Closes #49
easy as pie now that we have .src=Buffer support
|
13 years ago |
Walt Lin
|
bb1fbcf426
|
Make node-canvas compile with libjpeg62-dev or libjpeg8-dev.
- detect if libjpeg is < 8 and if so, define our own jpeg_mem_src.
|
13 years ago |
Tj Holowaychuk
|
8192e7e817
|
Added better image format detection
removed lame extension checks
|
14 years ago |
Tj Holowaychuk
|
7f8c2998a3
|
unnecessary parens
|
14 years ago |
Tj Holowaychuk
|
451154ce4c
|
unnecessary parens
|
14 years ago |
Tj Holowaychuk
|
5f74448ba2
|
unnecessary parens
|
14 years ago |
Tj Holowaychuk
|
ae4eb50bf1
|
imageIdx -> i
|
14 years ago |
Tj Holowaychuk
|
37c505493c
|
refactoring loadGIFFromBuffer
|
14 years ago |
Tj Holowaychuk
|
16cd613468
|
removed old gnu style initializer
seems fine with g++ though
|
14 years ago |
Tj Holowaychuk
|
16096ad24c
|
refactored Image::loadGIF()
|
14 years ago |
Tj Holowaychuk
|
afc5fa40ec
|
gft -> gif
|
14 years ago |
Tj Holowaychuk
|
b153b6785d
|
c-style gif internals
|
14 years ago |
Tj Holowaychuk
|
82b32c3b20
|
move gif privates into Image.cc
|
14 years ago |
Tj Holowaychuk
|
e827187a5a
|
fixed GIFInputFuncData struct style
|
14 years ago |
Tj Holowaychuk
|
32630a5637
|
have gif trailing comment
|
14 years ago |
Brian McKinney
|
63626fa672
|
Add GIF support
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
|
14 years ago |
Tj Holowaychuk
|
f4fc9ca88f
|
misc refactor
|
14 years ago |
Tj Holowaychuk
|
a647cb8b55
|
refactored Image::readPNG()
|
14 years ago |
Tj Holowaychuk
|
8179d4619e
|
Added Image#src= support. Closes #91
needs refactor
|
14 years ago |
Tj Holowaychuk
|
89af08d30d
|
Fixed (kinda) img.src= error handling
|
14 years ago |
Tj Holowaychuk
|
a6271b3243
|
todo
|
14 years ago |
Tj Holowaychuk
|
6527e3c4ba
|
refactoring Image
|
14 years ago |
Tj Holowaychuk
|
3a5c0d8ada
|
Image test refactoring
|
14 years ago |
Tj Holowaychuk
|
39e4b1f07e
|
ensure Image::extension() cstr has valid length
|
14 years ago |
Tj Holowaychuk
|
3d9e2b6b88
|
Fixed more HandleScopes
|
14 years ago |
Tj Holowaychuk
|
109efafedf
|
hint v8 at Image surface
|
14 years ago |
Tj Holowaychuk
|
52e24d893f
|
free data if src malloc() fails
|
14 years ago |
Tj Holowaychuk
|
157d93e68c
|
space
|
14 years ago |
Tj Holowaychuk
|
d7f6caae9b
|
changed image format exception message
|
14 years ago |
Tj Holowaychuk
|
a91a44c9ed
|
Fixed errors thrown in .onerror
|
14 years ago |
Tj Holowaychuk
|
00df2707e9
|
Fixed Image::error(), reports FatalException() unless .onerror is present
|
14 years ago |
Tj Holowaychuk
|
1fbbe1e8ed
|
NULL filename
|
14 years ago |
Tj Holowaychuk
|
4b58ef90fd
|
Fixed; freeing data in Image::loadJPEG() on failure
|
14 years ago |
Tj Holowaychuk
|
e3f52a8184
|
Added cairo_format_stride_for_width()
|
14 years ago |
Tj Holowaychuk
|
c0cf56920e
|
Fixed; include jpeglib only when HAVE_JPEG
|
14 years ago |
Tj Holowaychuk
|
408c02b1f7
|
misc
|
14 years ago |
Tj Holowaychuk
|
312c35f189
|
dispose onerror
|
14 years ago |