acornejo/jquery-cropbox — pull request #6 by KidkArolis (2014-01-30 19:03:07+00:00)
Title: Use Math.ceil for cropX, cropY - exports image without transparent edges

Currently, in Chrome - if you drag the image all the way top and left - in the exported image you get a 1px transparent edge at the bottom and right side of the image.

I've changed Math.floor to Math.ceil in cropX and cropY computation and that seems to fix the problem, although I'm not sure of exactly why, cause ctx.drawImage is tricky to understand ;)

Here you can see an example of exported image in a box with red background (and thick yellow border) - the red edges are transparent part of the png image.

![screen shot 2014-01-30 at 18 59 49](https://f.cloud.github.com/assets/324440/2043602/b951cbfc-89e0-11e3-9a2e-5e899cf1c326.png)

You can see the bug being reproduced here (using Chrome):
http://jsbin.com/aNIRAQOy/1/edit?output

And here is the same jsbin, but with the patched version of jquery-cropbox from this PR:
http://jsbin.com/aNIRAQOy/3/edit?output