Make thumbnails (variations of size 't') public.
This commit is contained in:
parent
6a07147e44
commit
0f0712205c
@ -124,6 +124,9 @@ def _process_image(gcs, file_id, local_file, src_file):
|
||||
blob.upload_from_filename(variation['local_path'],
|
||||
content_type=variation['content_type'])
|
||||
|
||||
if variation.get('size') == 't':
|
||||
blob.make_public()
|
||||
|
||||
try:
|
||||
os.unlink(variation['local_path'])
|
||||
except OSError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user