Skip to content

-change-orient flag manipulates the original image #101

@valosekj

Description

@valosekj

The recently added -change-orient flag (#100) works as follows:

  1. Fetch the original orientation of the image and label
  2. Change the orientation of the image and label to the orientation specified by -change-orient
  3. Open the viewer
  4. Change the orientation of the image and label back to the original orientation

This works fine if all the steps are executed. However, when the correction process is interrupted, for example, by pressing ctrl + C during steps 2 and 3, the orientation of the image and label will stay changed. This might be suboptimal as we are manipulating the original image.

For now, I have cross-refed this issue to the -change-orient help (9a57a8e).
A long-term solution might involve creating a tmp directory, copying the original files and reorienting these copies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions