Project

General

Profile

Feature #1943

Auto rotate image

Added by Bernhard Koschiček-Krombholz about 2 months ago. Updated about 1 month 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

Related to OpenAtlas - Feature #1848: API: fetch data from ARCHEClosed2022-10-19Actions

History

#1

Updated by Bernhard Koschiček-Krombholz about 2 months ago

  • Related to Feature #1663: Controlled vocabularies via Vocabs added
#2

Updated by Bernhard Koschiček-Krombholz about 2 months ago

  • Related to deleted (Feature #1663: Controlled vocabularies via Vocabs )
#3

Updated by Bernhard Koschiček-Krombholz about 2 months ago

#4

Updated by Alexander Watzinger about 2 months ago

  • Category set to Backend
  • Target version changed from 7.10.0 to 7.12.0
#5

Updated by Bernhard Koschiček-Krombholz about 2 months ago

  • Status changed from Assigned to Acknowledged
  • Assignee deleted (Bernhard Koschiček-Krombholz)

There is no version of exiftran for Windows, therefor it is hard to test and implement it for me.

#6

Updated by Alexander Watzinger about 1 month ago

  • Status changed from Acknowledged to In Progress
  • Assignee set to Alexander Watzinger
#7

Updated by Alexander Watzinger about 1 month ago

  • Status changed from In Progress to Closed
  • Target version changed from 7.12.0 to 7.11.0

Images are now auto rotated if they have the metadata that can be used by exiftran. A typical example would be a taken photo.

Also available in: Atom PDF