We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab8b057 commit cf80555Copy full SHA for cf80555
1 file changed
comiclib/utils.py
@@ -23,6 +23,7 @@
23
24
mimetypes.add_type('image/jxl', '.jxl')
25
def is_image(p: Union[str, Path]):
26
+ if Path(p).parts[0] == '__MACOSX': return False
27
mime = mimetypes.guess_type(p, strict=False)[0]
28
return False if mime is None else mime.partition('/')[0] == 'image'
29
0 commit comments