You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
Just a simply and little code in JS to crop directly in Base64. With this, you can add the dataUrl (contains cropped picture) in hidden input and don't upload a big image but just the result.
Maybe you can add it in a new function in your (great) plugin.
Best regards.
Must have :
A canvas in html.
Nota :
$imgData is data from the function "done" in cropper.
150 is the wanted size in pixel.
- Supports zoom (#1, #79) and rotate(#81).
- Add 2 new options: "zoomable" and "rotatable".
- Add 6 new methods: "enable", "disable", "zoom", "rotate", "getDataURL"
(#80) and "setDragMode".
- Rename "release" method to "clear".
- Rename "setImgSrc" method to "replace".
- Rename "getImgInfo" method to "getImageData".
- Some other improvements.
Hi,
Just a simply and little code in JS to crop directly in Base64. With this, you can add the dataUrl (contains cropped picture) in hidden input and don't upload a big image but just the result.
Maybe you can add it in a new function in your (great) plugin.
Best regards.
Must have :
A canvas in html.
Nota :
$imgData is data from the function "done" in cropper.
150 is the wanted size in pixel.
Code JS:
The text was updated successfully, but these errors were encountered: