14 lines
413 B
Python
14 lines
413 B
Python
from System.Drawing import Image as WinImage
|
|
|
|
from .probe import BaseProbe
|
|
|
|
|
|
class ImageProbe(BaseProbe):
|
|
def __init__(self, app, image):
|
|
super().__init__()
|
|
self.app = app
|
|
self.image = image
|
|
assert isinstance(self.image._impl.native, WinImage)
|
|
|
|
def supports_extension(self, extension):
|
|
return extension.lower() in {".jpg", ".jpeg", ".png", ".gif", ".bmp", ".tiff"}
|