Skip to content

Issue with MPO type of JPEG file #12

@jbaack

Description

@jbaack

Pillow detects some JPEGs as format MPO. These can be treated as JPEGs in all other way - but got an error when Da Vinci tries to determine the file extension.

Adding the final line below in formats.py fixed my simple use (from django-thumbnails).

EXTENSIONS = {
'JPEG': 'jpg',
'GIF': 'gif',
'PNG': 'png',
'PDF': 'pdf',
'TIFF': 'tif',
'BMP': 'bmp',
'WEBP': 'webp',
'MPO': 'jpg'
}

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