Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orientation 6 and 8? #7

Open
benbro opened this issue Mar 7, 2013 · 0 comments
Open

Orientation 6 and 8? #7

benbro opened this issue Mar 7, 2013 · 0 comments

Comments

@benbro
Copy link

benbro commented Mar 7, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant