nitin42/react-imgpro

how can i rotate image without width and height resize?

RebelBIrd opened this issue · 0 comments

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??