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

Issue #8 Keeping originals #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Issue #8 Keeping originals #23

wants to merge 1 commit into from

Conversation

benvand
Copy link

@benvand benvand commented Nov 19, 2013

Added flag "original" allowing for keeping original image as well as storing resized and thumbnail images. Also supports .original in template.
Abstracted some classes to use with both original and thumbnail.
Filenames are the same pattern as with thumbnails excepting that .thumbnail. is replaced with .original.
No updates to doco yet. Will hopefully get round to that soon. Just an original = True flag passed to the field on the model.

This works in one of my projects:

picture = StdImageField(upload_to='gallery/GalleryImages', blank=True, size=(640, 480), thumbnail_size=(100, 100), original = True)

…s storing resized and thumb images. Also supports .original in template.
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

Successfully merging this pull request may close these issues.

1 participant