Skip to content

Why don't you try using the pathlib library? #1

@wakame1367

Description

@wakame1367

I think we can swap out img_path.split('.')[-1].lower() for [PurePath.suffix].(https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.suffix)

if img_path.split('.')[-1].lower() in ['jpg', 'jpeg', 'jpe', 'png', 'bmp', 'ppm', 'pbm', 'pgm', 'sr', 'ras']:

reference_link

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