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

Thumbnails with remote media #1949

Closed
wants to merge 6 commits into from

Conversation

cjh79
Copy link

@cjh79 cjh79 commented Oct 10, 2019

This is an implementation of the fix described here: https://groups.google.com/forum/#!msg/mezzanine-users/WGVaNhD5vRs/7Ktw7-UkosgJ

Rather than using os functions to create thumbnails on the filesystem, create the thumbnail in memory and push it to the media storage using default_storage. This fixes the thumbnail tag when using remote media storage.

I have tested this using remote storage (S3), and local storage. I would appreciate a second set of eyes on the fix.

@cjh79
Copy link
Author

cjh79 commented Oct 28, 2019

Closing this, as I am creating a new PR for an additional feature to aid in using S3, which depends on these changes and so will also incorporate them.

@cjh79 cjh79 closed this Oct 28, 2019
@cjh79 cjh79 deleted the thumbnails-with-remote-media branch October 28, 2019 23:49
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