Skip to content

Commit 5d26b66

Browse files
committed
Removed the ImageMobject example
1 parent 425eebe commit 5d26b66

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

manim/mobject/types/image_mobject.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def reset_points(self):
5151
class ImageMobject(AbstractImageMobject):
5252
"""Displays an Image from a numpy array or a file.
5353
54-
Examples
55-
--------
54+
Example
55+
-------
5656
.. manim:: ImageFromArray
5757
:save_last_frame:
5858
@@ -63,22 +63,6 @@ def construct(self):
6363
image.set_height(7)
6464
self.add(image)
6565
66-
.. manim:: ImageFromFile
67-
:save_last_frame:
68-
69-
class ImageFromFile(Scene):
70-
def construct(self):
71-
# Use PIL when you want to import an image from the web
72-
import requests
73-
from PIL import Image
74-
img = Image.open(requests.get("https://raw.githubusercontent.com/ManimCommunity/manim/master/logo/cropped.png",
75-
stream=True).raw)
76-
img_mobject = ImageMobject(img)
77-
# this line, when you want to import your Image on your machine
78-
# img_mobject = ImageMobject("<your image address>")
79-
img_mobject.scale(3)
80-
self.add(img_mobject)
81-
8266
"""
8367

8468
CONFIG = {

0 commit comments

Comments
 (0)