diff --git a/openatlas/views/entity.py b/openatlas/views/entity.py index 48ee9ee7d..aae056164 100644 --- a/openatlas/views/entity.py +++ b/openatlas/views/entity.py @@ -212,7 +212,7 @@ def insert_files(manager: BaseManager) -> Union[str, Response]: path = app.config['UPLOAD_PATH'] / name file.save(str(path)) if f'.{ext}' in g.display_file_ext: - call(['exiftran', '-ai', path]) # Fix rotation + call(f'exiftran -ai {path}', shell=True) # Fix rotation filenames.append(name) if g.settings['image_processing']: resize_image(name)