Joe Freeman
66a7a895d8
Fix 'drawImage' scaling (the dimensions of the region that gets clipped also needs to be scaled).
10 years ago
Joe Freeman
08d4cbf4b8
Make the failing 'drawImage' test more obvious.
10 years ago
Joe Freeman
6ba110bb87
Update the readme (node modules need to be installed before 'node-gyp rebuild').
10 years ago
Andy Wood
dfc661f28f
Just use cairo_image_surface_create rather than cairo_surface_create_similar_image which was introduced in cairo 1.12.
Unfortunately the cairo distributed with GTK+, used in the Windows build, is only 1.10.
Using the similar_image version offers backends the chance to be more efficient, but the alternative used here is used as a fallback in the cairo code anyway.
10 years ago
Nathan Rajlich
5004d406bf
Merge pull request #488 from mdehaussy/master
Fix image loading for non-POSIX systems.
10 years ago
Nathan Rajlich
5b175ad61d
Release 1.2.0
10 years ago
Nathan Rajlich
2a301d056a
travis: drop support for node v0.6
10 years ago
Nathan Rajlich
52b29f8c5a
Merge pull request #507 from salzhrani/iojs
io.js compatibility
10 years ago
zahranisa
66fa59c4a8
io.js compatibility
10 years ago
Juriy Zaytsev
eaeac130e8
Merge pull request #505 from woodcoder/shadow-blur
Shadow blur
10 years ago
Andy Wood
8c6984a099
Fix issue with line width not being correct in stroked shadows.
10 years ago
Andy Wood
6e829af121
Add another shadow/transform test.
10 years ago
Andy Wood
822d822066
Refactor setSourceRGBA to allow the context to be supplied.
10 years ago
Andy Wood
39766d1fd6
Simple image shadow (no blurring or handling current transforms) based on image's alpha channel.
10 years ago
Andy Wood
9187d4535a
Test showing issue #133 , that images don't have shadows.
10 years ago
Andy Wood
2b366c684e
The +1 on the offset seems to match the browser's output better, but I can't work out why it would be needed (unless it's pixel alignment related).
10 years ago
Andy Wood
d2755c6cbe
Merge branch 'shadow-pdf' into shadow-blur, including fixing up blur transforms and removing resolution (for now).
Conflicts:
src/CanvasRenderingContext2d.cc
10 years ago
Andy Wood
d5a1ce927f
Merge branch 'shadow-transform' into shadow-blur
10 years ago
Andy Wood
617aabc6ae
Make the shadow radius more accurately match the browser's, making use of sigma scale as used in SKIA: https://github.com/google/skia/blob/master/src/effects/SkBlurMask.cpp#L26 .
10 years ago
Andy Wood
0dcc70b2b3
Create a new image surface to render blurred shadows to, this means that vector formats like PDF will now render blurs.
10 years ago
Andy Wood
5d9582b81e
Add recommended calls to flush and dirty buffer, as per http://www.cairographics.org/manual/cairo-Image-Surfaces.html#cairo-image-surface-get-data .
10 years ago
Andy Wood
cbf3da4900
Add PDF button to test page to easily generate PDF version of the test image.
10 years ago
Andy Wood
95e342d259
Fix to ensure shadowOffset is unaffected by the current transform.
10 years ago
Andy Wood
acba6ae15f
New test illustrating that canvas implementation doesn't translate the shadowOffset.
10 years ago
Juriy Zaytsev
9a3bde4e3c
Merge pull request #490 from AllYearbooks/master
re-enable pango, use fontconfig and floats for drawImage()
10 years ago
Juriy Zaytsev
745cfdc6ad
Merge pull request #501 from motiz88/hsl-color
hsl() and hsla() color parsing
10 years ago
motiz88
113abfbd90
Code style + attribution.
Also removed parseClipped() and commented out wrapInt (now wrap_int).
10 years ago
motiz88
020c18c123
Added visual tests for hsl() and hsla() color parsing.
10 years ago
motiz88
3951221166
Fixed <number> handling in hsl/hsla color parser.
parseNumber() was erroring out on numbers with long fractional parts.
10 years ago
motiz88
3cc596f34c
hsl/hsla color parsing + rebeccapurple
hsl() and hsla() color values are now supported, with corresponding unit tests.
Also added rebeccapurple (from CSS Color Level 4) to the named color list.
10 years ago
Jake Gordon
36bd6498b5
float rather than int for drawImage arguments
10 years ago
Jake Gordon
7522aca2ea
with_pango to true and use fontconfig to load fonts
10 years ago
Matthieu Dehaussy
372fb699f0
Update Image.cc
fix fopen mode for non-POSIX platform
10 years ago
Juriy Zaytsev
14e8b6c30b
Merge pull request #399 from nulltask/fix/lighten
change operator lighter to lighten
10 years ago
nulltask
3e9464984e
Merge branch 'master' of https://github.com/Automattic/node-canvas into fix/lighten
Conflicts:
src/CanvasRenderingContext2d.cc
10 years ago
Juriy Zaytsev
76e0d128a4
Merge pull request #465 from espadrine/master
Support SVG output
10 years ago
Juriy Zaytsev
4e6827da3d
Merge pull request #470 from tonylukasavage/patch-1
Add one-liner MacPorts install to docs
10 years ago
Tony Lukasavage
2077911a22
Add one-liner MacPorts install to docs
10 years ago
Thaddee Tyl
79f1d42fb5
Offer SVG output.
10 years ago
Thaddee Tyl
c8c6f09aca
Readme update: node-gyp.
10 years ago
Nathan Rajlich
475943b632
Readme: ocd
10 years ago
Nathan Rajlich
2ddcf97c58
Readme: fix subheading size
10 years ago
Nathan Rajlich
11a034e2a6
Readme: remove Gemnasium badge, use SVG for npm badge
10 years ago
Nathan Rajlich
96a1b005f3
Readme: add Travis-CI badge
10 years ago
Nathan Rajlich
138abe9aa3
Release 1.1.6
11 years ago
Nathan Rajlich
6fc2c3bd9a
History: consistent output styling
11 years ago
Nathan Rajlich
154d586d17
Merge pull request #381 from mojodna/add-operator
Distinguish between 'add' and 'lighter'
11 years ago
Nathan Rajlich
e4bd4c6496
Merge pull request #448 from Gottox/master
export canvas.CanvasPixelArray instead of canvas.PixelArray which is undefined
11 years ago
Nathan Rajlich
cfac76c848
Merge pull request #447 from svandecappelle/master
giflib 5.1
11 years ago
Enno Boland
bee3774333
export canvas.CanvasPixelArray instead of canvas.PixelArray which is undefined
11 years ago