Closed Joshuajrodrigues closed 10 months ago
You can upgrade to 4.18.0
, and use beforeCrop
to return a resized image to crop, like
beforeCrop={(oldFile) => {
const resizedFile = resizeFile(oldFile); // do some thing with oldFile
return resizedFile;
}}
I need to resize the image first (preferably below 1024 pixels) because of apple safari issues. Now im using a browser side compression for this, but I have no way of finding out if the resized image is being used on the cropper or not.
`
}
`
Would this send the resized image to the cropper ? or do I need to resize it in the Upload component somwhere ?