canvasResize icon indicating copy to clipboard operation
canvasResize copied to clipboard

Orientation 6 and 8?

Open benbro opened this issue 11 years ago • 0 comments

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

benbro avatar Mar 07 '13 01:03 benbro