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

Any documentation on using django-image-cropping with google storage backend? #100

Closed jkesler closed 8 years ago

jkesler commented 8 years ago

Heya!

This is a fantastic plugin and I have really enjoyed playing with it, it works really well locally for us.

We are working on a site that is using google app engine and google storage and I can't seem to find any kind of documentation or examples when using alternate storage backends.

Is there any way you might be able to point me to where in the source I would need to add some additional logic to support google storage? Thank you a bunch for your time and great work on this library.

anrie commented 8 years ago

Hey @jkesler,

most the actual work of django-image-cropping is in fact done by easy-thumbnails.

At least for S3 changing the easy-thumbnail's storage backend seemed to do the trick.

jkesler commented 8 years ago

@anrie Thank you so much for your quick reply. I was not too familiar with easy-thumbnails but after reading your comment I was quickly able to find the answer.

I simply had to add the following to my application settings and everything is working beautifully

THUMBNAIL_DEFAULT_STORAGE = 'storages.backends.gs.GSBotoStorage'

Thanks again <3

anrie commented 8 years ago

Ah, great! I see that I add a section about remote storages to the docs.