diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-06-10 17:49:23 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-06-10 17:49:23 +0300 |
| commit | add6508961c4fe3a6348e96654c905a73774d390 (patch) | |
| tree | 0c849fe28469154138dd529fb659061d14b0da50 /client/templates | |
| parent | f6cfae2649a3447bee4df4d6a3e9286531a71d17 (diff) | |
Add pixelation
Diffstat (limited to 'client/templates')
| -rw-r--r-- | client/templates/photos.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/templates/photos.html b/client/templates/photos.html index 565e0cc..4ca451d 100644 --- a/client/templates/photos.html +++ b/client/templates/photos.html @@ -2,8 +2,10 @@ {{#each photos}} {{> photo}} {{/each}} + <button class="pixelate btn btn-default">Pixelate</button> </template> <template name="photo"> - <img src="{{images.thumbnail.url}}"> + <img id="img-{{id}}" src="{{images.thumbnail.url}}" crossOrigin="Anonymous"> + <canvas id="canvas-{{id}}" resize="true" style="width: 180px; height: 230px;"></canvas> </template> |
