cropping
cropping copied to clipboard
Cropper options?
Hi @RaoHai, thanks for putting out this library! I had a couple of questions around the options available -
- Is it possible to implement this without the modal? I'm looking to do it on the page itself, ideally.
- For centered circular cropper in the screenshot, can you share the options needed to do that?
Thank you!
- Yes.
- Recently it just a
border-radius
styled preview, and still get a rectangle picture as the result.
Thanks for your suggestions. And both of them will get improved soon.
published.
- look at: https://react-component.github.io/cropping/examples/raw.html
<CropViewer {...otherprops} circle={true} />
will get circle picture ~
Thank you for the updates. So, the renderModal
should render the Scaler, and the CropViewer components?
function CropperContainer(props) {
return <div>
{props.title}
{props.children}
{props.footer}
</div>;
}
to compat to rc-dialog, they have been separated into three partials: title, children, and footer.