Project

General

Profile

Actions

Feature #1943

closed

Auto rotate image

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

Updated by Bernhard Koschiček-Krombholz about 1 year ago

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

Updated by Bernhard Koschiček-Krombholz about 1 year ago

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

Updated by Bernhard Koschiček-Krombholz about 1 year ago

Actions #4

Updated by Alexander Watzinger about 1 year ago

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

Updated by Bernhard Koschiček-Krombholz about 1 year 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.

Actions #6

Updated by Alexander Watzinger about 1 year ago

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

Updated by Alexander Watzinger about 1 year 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.

Actions

Also available in: Atom PDF