Skip to content

Commit

Permalink
Merge pull request Zulko#2029 from FlandiaYingman/master
Browse files Browse the repository at this point in the history
fix: `Image.putalpha` does not return any value
  • Loading branch information
OsaAjani authored Dec 5, 2024
2 parents 265d32d + 84ad5fe commit f380ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moviepy/video/compositing/CompositeVideoClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def frame_function(self, t):
if self.bg.mask is not None:
frame_mask = self.bg.mask.get_frame(t)
im_mask = Image.fromarray(255 * frame_mask).convert("L")
im = im.putalpha(im_mask)
im.putalpha(im_mask)

for clip in self.playing_clips(t):
im = clip.blit_on(im, t)
Expand Down

0 comments on commit f380ada

Please sign in to comment.