diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-06-10 18:22:39 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-06-10 18:22:39 +0300 |
| commit | b8519b5dfa00c1b57766f101660d471d36f99846 (patch) | |
| tree | 7d83e3a6ea1b2fb2928ca6892db73cd205e3008d /client | |
| parent | f7ed021113c97628bf9e55aae442ed187c280106 (diff) | |
Fix pixelation performance and crossorigin attr
Diffstat (limited to 'client')
| -rw-r--r-- | client/effects.js | 3 | ||||
| -rw-r--r-- | client/templates/photos.html | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/client/effects.js b/client/effects.js index b5f54e2..52e1bcc 100644 --- a/client/effects.js +++ b/client/effects.js @@ -25,10 +25,11 @@ Effects = (function() { strokeColor: color, fillColor: color }); - paper.view.draw(); } } + paper.view.draw(); + var quant = MMCQ.quantize(colors, 2); var palette = quant.palette(); diff --git a/client/templates/photos.html b/client/templates/photos.html index 4ca451d..866ae9f 100644 --- a/client/templates/photos.html +++ b/client/templates/photos.html @@ -6,6 +6,6 @@ </template> <template name="photo"> - <img id="img-{{id}}" src="{{images.thumbnail.url}}" crossOrigin="Anonymous"> + <img id="img-{{id}}" src="{{images.thumbnail.url}}" crossorigin="anonymous"> <canvas id="canvas-{{id}}" resize="true" style="width: 180px; height: 230px;"></canvas> </template> |
