Open aouji opened 9 years ago
Fixes #43.
On firefox, due to floating point precision issues, in some cases size*xRatio ends up becoming something like 0.0000006 bigger than image width. This just makes sure the clip height and width do not go beyond image boundaries
size*xRatio
Don't do this! Let me crop bigger so I can change a rectangle to square. Fill with transparent.
Fixes #43.
On firefox, due to floating point precision issues, in some cases
size*xRatio
ends up becoming something like 0.0000006 bigger than image width. This just makes sure the clip height and width do not go beyond image boundaries