Skip to content

Instantly share code, notes, and snippets.

@barsukov
Created August 31, 2015 11:28
Show Gist options
  • Save barsukov/15f3a4b6c67675132a4e to your computer and use it in GitHub Desktop.
Save barsukov/15f3a4b6c67675132a4e to your computer and use it in GitHub Desktop.

Revisions

  1. barsukov created this gist Aug 31, 2015.
    13 changes: 13 additions & 0 deletions imgly.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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()