canvasResize
canvasResize copied to clipboard
Orientation 6 and 8?
Hi
In the following docs the 6 orientation means rotate left and 8 means rotate right http://sylvana.net/jpegcrop/exif_orientation.html http://www.impulseadventure.com/photo/exif-orientation.html
In canvasResize it's the opposite.
Am I missing something or is this a bug?
6 - 90 rotate right https://github.com/gokercebeci/canvasResize/blob/master/canvasResize.js#L125
8 - 90 rotate left https://github.com/gokercebeci/canvasResize/blob/master/canvasResize.js#L136
In case 6 the context is translated by -height and in case 8 by -width. Shouldn't the rotate left case translate by width instead?
Thanks