Skip to content

get_orientation #23

@KosuzuMotoori

Description

@KosuzuMotoori

In get_orientation is line:

orientation = exif['Orientation']['num']

If orientation missing in exif, it get error and function get_orientation not returning landscape/portrait value.

The code should be something like this:

    try:
        orientation = exif['Orientation']['num']
    except:
        orientation = 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions