Added HDRi variation swap operator.

The variation/resolution selector isn't final yet.
This commit is contained in:
2016-07-22 15:39:08 +02:00
parent c2363d248b
commit 99257bd88b
2 changed files with 216 additions and 12 deletions

View File

@@ -661,13 +661,14 @@ async def download_file_by_uuid(file_uuid,
# Find the File document.
file_desc = await pillar_call(pillarsdk.File.find, file_uuid, params={
'projection': {'link': 1, 'filename': 1},
'projection': {'link': 1, 'filename': 1, 'length': 1},
})
# Save the file document to disk
metadata_file = os.path.join(metadata_directory, 'files', '%s.json' % file_uuid)
save_as_json(file_desc, metadata_file)
# TODO: base the file name on the node name, not the filename in the file_desc.
root, ext = os.path.splitext(file_desc['filename'])
if not map_type or root.endswith(map_type):
target_filename = '%s%s' % (root, ext)