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