Skip to content

Images in MPO Format are considered corrupted #2446

@maxupp

Description

@maxupp

I am using images taken by a DJI drone. These images are deemed corrupted by the dataset loader, and are thus not used.
This happens because in datasets.py the im.format is checked against a list of formats that doesn't contain "mpo".
If I add that entry manually everything works as expected.

MPO is a container format, that can contain any of the valid formats.

🐛 Bug

Images that report "MPO" as PIL.Image.format are deemed corrupted.

To Reproduce (REQUIRED)

Try to load MPO images.
DJI_0180

I'm not sure whether Github tempers with the image. If necessary I can upload somewhere else.

Expected behavior

Images should be considered valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions