Skip to content

Instantly share code, notes, and snippets.

@serby
Last active December 15, 2015 10:19

Revisions

  1. Paul Serby renamed this gist Mar 26, 2013. 1 changed file with 3 additions and 7 deletions.
    10 changes: 3 additions & 7 deletions image.json → image.js
    Original file line number Diff line number Diff line change
    @@ -8,12 +8,8 @@
    }
    }

    http://darkroom.io/crop/e908a098ee7/2:3

    article.images[0].getCrop('2:3', 200)

    // http://darkroom.io/crop/e908a098ee7/2:3
    // article.images[0].getCrop('2:3', 200)
    // http://darkroom.io/200/http://darkroom.io/crop/e908a098ee7/2:3

    http://cdn.neverundressed.com/29a83sd/kate-moss.jpg

    //http://cdn.neverundressed.com/29a83sd/kate-moss.jpg
    // 400x600
  2. Paul Serby created this gist Mar 26, 2013.
    19 changes: 19 additions & 0 deletions image.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    { '2:3':
    { w: 2000
    , h: 3000
    , x1: 0
    , y1: 0
    , x2: 200
    , y2 300
    }
    }

    http://darkroom.io/crop/e908a098ee7/2:3

    article.images[0].getCrop('2:3', 200)

    // http://darkroom.io/200/http://darkroom.io/crop/e908a098ee7/2:3

    http://cdn.neverundressed.com/29a83sd/kate-moss.jpg

    // 400x600