A community-maintained Python framework for creating mathematical animations.
Fix Cairo image rendering with Pillow 13 (#5074)
Benjamin Hackl3e19ee016fe6
diff --git a/manim/camera/camera.py b/manim/camera/camera.pyindex b3371faf3..6dfc08117 100644--- a/manim/camera/camera.py+++ b/manim/camera/camera.py@@ -1125,9 +1125,10 @@ class Camera:)# Paste into an image as large as the camera's pixel array.- full_image = Image.fromarray(- np.zeros((self.pixel_height, self.pixel_width)),- mode="RGBA",+ full_image = Image.new(+ "RGBA",+ (self.pixel_width, self.pixel_height),+ (0, 0, 0, 0),)full_image.paste(sub_image,