Feature #1943
closed
Added by Bernhard Koschiček-Krombholz almost 2 years ago.
Updated almost 2 years ago.
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 to Feature #1663: Controlled vocabularies via Vocabs added
- Related to deleted (Feature #1663: Controlled vocabularies via Vocabs )
- Category set to Backend
- Target version changed from 7.10.0 to 7.12.0
- 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.
- Status changed from Acknowledged to In Progress
- Assignee set to Alexander Watzinger
- 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