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

Allow initial image rotation #586

Closed
M393 opened this issue Feb 7, 2023 · 3 comments · May be fixed by #587
Closed

Allow initial image rotation #586

M393 opened this issue Feb 7, 2023 · 3 comments · May be fixed by #587

Comments

@M393
Copy link

M393 commented Feb 7, 2023

Is your feature request related to a problem? Please describe.
I need to display images that have separate rotation information, but there doesn't seem to be a way to set a rotation before an image is viewed.
E. g. I have an image that needs to be displayed with a 90° rotation.

Describe the solution you'd like
Allow setting the rotation in the view handler.

Describe alternatives you've considered
Allow configuring a rotation with the image.

@fengyuanchen
Copy link
Owner

How about this solution?

new Viewer(image, {
  // ...
  viewed: function () {
    this.viewer.rotate(90);
  },
});

@M393
Copy link
Author

M393 commented Feb 13, 2023

Thanks for your time.

Your example will show the image, then rotate it. I'm looking for a solution that will show the image as if it is not rotated.

@fengyuanchen
Copy link
Owner

Maybe it is not supported.

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

Successfully merging a pull request may close this issue.

2 participants