Created
August 31, 2015 11:28
-
-
Save barsukov/15f3a4b6c67675132a4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image = new Image() | |
image.crossOrigin = "Anonymous" | |
image.src = 'here is url from server' | |
image.onload = -> | |
kit = new ImglyKit( | |
renderer: "canvas" | |
assetsUrl: "/assets" | |
image: image | |
container:$(".image_kit_start") | |
ui: | |
enabled: true | |
) | |
kit.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment