Skip to content
Permalink
Browse files

delayed import due to change in numpy

  • Loading branch information...
sdpython committed Mar 2, 2019
1 parent 13cf599 commit 621724291ef98e59f945d29bacfb4d191308239b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/code_beatrix/art/video.py
@@ -21,7 +21,6 @@
from moviepy.video.compositing.concatenate import concatenate_videoclips
from moviepy.audio.AudioClip import concatenate_audioclips, AudioArrayClip
from PIL import Image, ImageFont, ImageDraw
from skimage.transform import rescale
from .moviepy_context import AudioContext, VideoContext, get_wrapped, clean_video


@@ -717,6 +716,7 @@ def video_image(image_or_file, duration=None, zoom=None, opacity=None, **kwargs)
return video_image(img, duration=duration, zoom=zoom, opacity=opacity, **kwargs)
elif isinstance(image_or_file, numpy.ndarray):
if zoom is not None:
from skimage.transform import rescale
img = rescale(image_or_file, zoom)
return video_image(img, duration=duration, opacity=opacity, **kwargs)
else:

0 comments on commit 6217242

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.