Can we crop image as a grids configured? #334
Replies: 2 comments
-
Hi @AlbertLiu1974. I suppose that option is supported in release candidate for v2 cropper.js sdk: https://fengyuanchen.github.io/cropperjs/v2/api/cropper-grid.html. Perhaps in the first version it is possible to do this through css or to access these cropper elements manually and generate the appropriate blocks via js. |
Beta Was this translation helpful? Give feedback.
-
@AlbertLiu1974 I'm researching this and the easiest way to do it for the current (1.6.2) cropper.js version is: Css code for
Additionally, you may need to tweak the background-image. Css code for
As long as I see such a way to cropping image with grids. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
Just met some requirement for cropping image with grids. Just like the sample below which is 5x6 sized tag label and I need to crop it according to the defined 5x6 size. Thanks.
Br, Albert
Beta Was this translation helpful? Give feedback.
All reactions