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

how can i rotate image without width and height resize? #34

Open
RebelBIrd opened this issue Jul 24, 2019 · 0 comments
Open

how can i rotate image without width and height resize? #34

RebelBIrd opened this issue Jul 24, 2019 · 0 comments

Comments

@RebelBIrd
Copy link

my code
<ProcessImage image={imageSrc} resize={{ width: 400 }} rotate={{ degree: 90 * this.state.rotate }} processedImage={(src, err) => this.setState({ src, err})} />
when the degree is 90 or 180,origin image's width would be current image's height.
I noticed that api doc
rotate
rotate the image
Example -

<ProcessImage image={image} rotate={{ degree: 75, mode: 'bilinear' }}
Optionally, a resize mode can be passed. If false is passed as the second parameter, the image width and height will not be resized.

But i do not kown how to pass the parameter, can you give me a example??

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