I am trying to upload images
(average size 12 MB) to my server (django using PIL)then I'm processing them to scale down images and creating thumbnails.
During this process I'm not saving images to server local disk instead, I'm using In Memory file
and processing it. I'm uploading images to s3, using boto and I have original image, scaled image and the thumbnail which should be uploaded one by one (all these three are still present in my in Memory).
This process is very time consuming and sometimes the server which I am using (Digital Ocean 512 MB RAM) throws out of memory error.
Can I know is there any better way of uploading images
Any help is much appreciated. Thanks in advance.
To upload folders and files to an S3 bucketSign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/ . In the Buckets list, choose the name of the bucket that you want to upload your folders or files to. Choose Upload.
I haven't worked a lot with django & boto but u can try few suggestions:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With