Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for django-stdimage variations #6

Open
MaZZly opened this issue Feb 2, 2017 · 6 comments
Open

Add support for django-stdimage variations #6

MaZZly opened this issue Feb 2, 2017 · 6 comments

Comments

@MaZZly
Copy link

MaZZly commented Feb 2, 2017

Hiyo..

noticed this removed thumbnails and such for my projects.. So I decided to extend this to support the variations field that django-stdimage uses..

#5

Feel free to merge

Cheers!

@MaZZly
Copy link
Author

MaZZly commented Feb 2, 2017

Might also be worth adding to the README that it support django-stdimage variations.

@MaZZly MaZZly changed the title Add support for django-stdimage Add support for django-stdimage variations Feb 2, 2017
@vartagg
Copy link

vartagg commented Jun 30, 2017

It seems that https://github.com/respondcreate/django-versatileimagefield has no attrubute variations.

----> 1 image.variations

AttributeError: 'VersatileImageFieldFile' object has no attribute 'variations'

Probably it would be better to add the possibility of declaring lookups for field thumbnails when running the command

@akolpakov
Copy link
Owner

Yes, I'm thinking to do something more universal.
Do you know how I can retrieve all thumbnails from VersatileImageFieldFile ?

@vartagg
Copy link

vartagg commented Jul 2, 2017

@akolpakov In my application using django-versatileimagefield I resolved this issue very simply: there are few settings which can be used for configure locations of changed images: VERSATILEIMAGEFIELD_SIZED_DIRNAME, VERSATILEIMAGEFIELD_FILTERED_DIRNAME, VERSATILEIMAGEFIELD_PLACEHOLDER_DIRNAME, so I just added these paths to -e option when calling the Command

@boryskuczkowski
Copy link

Sorry, has this issue been addressed beside ignoring named thumbnails in command?

@akolpakov
Copy link
Owner

@boryskuczkowski you can ignore thumbnails by using --exclude option, please check README.

But this issue is about to implement some universal automatic solution to exclude them automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants