django-image-cropping icon indicating copy to clipboard operation
django-image-cropping copied to clipboard

Image Cropping from URL

Open foragerDev opened this issue 4 years ago • 3 comments

Hi, recently I happen to use this project, but my requirement was different, that I had Image URL on S3 so, I needed to crop them, so what I did is I add a ImageURLField that will download the image save it temporarily. and the will return the cropped image. That's what my approach is, and I made it work to show me the Image on the front end. But I do not know will it be able to transfer the cropped image over the network. As I just do not need to save the cropped the image. Just need to save the coordinates so that it can be sent as it is saved by the admin.

foragerDev avatar Apr 20 '21 13:04 foragerDev

Yep, this is a missing feature.

MRigal avatar May 20 '21 19:05 MRigal

@MRigal after lots of research, you can change the storage to S3 with this library. https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html. And it works normally, then ImageField uploads the file to the cloud and downloads it from there.

foragerDev avatar May 21 '21 06:05 foragerDev

@MRigal after lots of research, you can change the storage to S3 with this library. https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html. And it works normally, then ImageField uploads the file to the cloud and downloads it from there.

If you arrived at that conclusion then you should close this issue I think..

RmaxTwice avatar Sep 01 '23 13:09 RmaxTwice