Project

General

Profile

Actions

Feature #1943

closed

Auto rotate image

Added by Bernhard Koschiček-Krombholz over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Backend
Target version:
Start date:
2023-01-27
Estimated time:

Description

Some image are not rotated and this doesn't look nice for thumbnails. Therefore, Alex suggested following code to improve this:

from subprocess import call

if f'.{ext}' in app.config['IMAGE_EXTENSIONS']:
  call(f'exiftran -ai {path}', shell=True)  # Fix rotation

Related issues 1 (0 open1 closed)

Related to OpenAtlas - Feature #1848: API: fetch data from ARCHEClosedBernhard Koschiček-Krombholz2022-10-19Actions
Actions

Also available in: Atom PDF