We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7732d2f commit 6cdbe0dCopy full SHA for 6cdbe0d
manimlib/mobject/types/image_mobject.py
@@ -22,10 +22,13 @@ class ImageMobject(Mobject):
22
}
23
24
def __init__(self, filename, **kwargs):
25
- path = get_full_raster_image_path(filename)
+ self.set_image_path(get_full_raster_image_path(filename))
26
+ super().__init__(**kwargs)
27
+
28
+ def set_image_path(self, path):
29
+ self.path = path
30
self.image = Image.open(path)
31
self.texture_paths = {"Texture": path}
- super().__init__(**kwargs)
32
33
def init_data(self):
34
self.data = {
0 commit comments