Repository navigation
Does WebP workaround work with AWS S3? #593
Unanswered
HenryMehta
asked this question in
Q&A
Replies: 3 comments
|
You are not alone, i'm hitting the same issue have you find a solutions ? Regars |
0 replies
|
I did find the solution but cannot remember what it was. I'm running it on a Ubuntu PC and there was something I didn't have downloaded. Once done it worked fine. It was some webp program needed for Linux. I just don't remember what - sorry |
0 replies
|
I have analized with more details the problem. def store_as_webp(sender, **kwargs):
s3_image_path = '.'.join([sender.name, 'webp'])
_, fname = tempfile.mkstemp(dir="/tmp/")
sender.image.save(fname, 'webp')
f = open(fname, "rb")
sender.storage.save(s3_image_path, f)
f.close()
os.unlink(fname) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This is really just a question but I've implemented the WebP workaround proposed but it doesn't seem to work for me and I cannot understand what I've done wrong.
In my
apps.pyI haveThe first 2 logger lines are printed, then nothing so something is going wrong but I do not understand what. Any help would be appreciated
All reactions