How do I actually crop and compress (resize to snippet size) the image on back-end?
I'm using croppie on front-end: https://foliotek.github.io/Croppie/
I'm completely lost, small guidance would be very helpful.
Thanks!
How do I actually crop and compress (resize to snippet size) the image on back-end?
I'm using croppie on front-end: https://foliotek.github.io/Croppie/
I'm completely lost, small guidance would be very helpful.
Thanks!
Copyright © 2021 Jogjafile Inc.
Why do you want crop your pic on back-end? This operation should have be done in browser. When you use
result({ type, size, format, quality, circle })
function, you can get data of cropped pic. If type isbase64
, you can save the data to file afterbase64_decode
it.