jonasundderwolf / django-image-cropping

Django helper application to easily and non-destructively crop arbitrarily large images in admin and frontend.
Other
553 stars 130 forks source link

Django cropping on AWS, django 1.8.8 #88

Closed ppeczek closed 6 years ago

ppeczek commented 8 years ago

Hi,

Unfortunately there is no clear documentation for using library with AWS. It seems that AWS is not generating files on the server. From templatetag thumbnail I get probably proper src of image: "events_big/12687976_10208692743942939_7164020722604166972_n.jpg.1250x510_q85_box-0%2C66%2C850%2C412_crop_detail.jpg", but given image does not exist: "Failed to load given URL".

I use django-image-cropping 1.0.3. I used django-image-cropping-amazon-s3 but the result was the same. Is it fault in code or in AWS config?

marthall commented 8 years ago

+1 @ppeczek: Did you find a solution to this?

ppeczek commented 8 years ago

Not yet, just skipped to another functionality. Set image as background in css and manipulate it with width, height, top and left properties.

marthall commented 8 years ago

Ok, seems like this is related: https://github.com/SmileyChris/easy-thumbnails/issues/284

I will test it tomorrow and report back/fix documentation.

jmrivas86 commented 6 years ago

@ppeczek @marthall the solution is to set THUMBNAIL_DEFAULT_STORAGE for AWS:

THUMBNAIL_DEFAULT_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

anrie commented 6 years ago

Ah, thanks for the solution @jmrivas86