diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-11-11 17:51:47 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-11-11 17:51:47 +0100 |
| commit | 143045892457e67a8474f118bdd23a29a2811598 (patch) | |
| tree | a0a4f4a4059e4995395fb90981c3ff8f2f161c79 | |
| parent | be2d855e44ef992d819ba1ad78bb680957206bf7 (diff) | |
reduce amount of exported fullsize media
| -rw-r--r-- | animism-align/cli/commands/site/export.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/animism-align/cli/commands/site/export.py b/animism-align/cli/commands/site/export.py index 118afcd..e1d5e58 100644 --- a/animism-align/cli/commands/site/export.py +++ b/animism-align/cli/commands/site/export.py @@ -110,8 +110,9 @@ def rewrite_db_media(db, fp_out, url_out): """ to_copy = {} for item in IterateTable(db['media']): - # images - various sizes settings = item['settings'] + + # images - various sizes... we don't use fullsize anywhere if item['type'] == 'image': if 'fullsize' in settings: del settings['fullsize'] @@ -122,7 +123,7 @@ def rewrite_db_media(db, fp_out, url_out): elif item['type'] == 'video': if 'poster' in settings: settings['poster'] = rewrite_upload(to_copy, settings['poster'], fp_out, url_out) - # galleries - a bunch of lookups + # galleries - a bunch of lookups... we PROBABLY don't need image_lookup (fullsize) elif item['type'] == 'gallery': new_image_lookup = {} for id in settings['image_order']: |
