react-imgpro icon indicating copy to clipboard operation
react-imgpro copied to clipboard

how can i rotate image without width and height resize?

Open RebelBIrd opened this issue 6 years ago • 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??

RebelBIrd avatar Jul 24 '19 01:07 RebelBIrd