Skip to content

Video editing with Python

fix issue 417, unicode has no attribute 'shape' error.

Billy Earney3870506eb297
diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.py
index 06f3047f..4cbab379 100644
--- a/moviepy/video/VideoClip.py
+++ b/moviepy/video/VideoClip.py
@@ -919,7 +919,7 @@ class ImageClip(VideoClip):
VideoClip.__init__(self, ismask=ismask, duration=duration)
- if isinstance(img, str):
+ if isinstance(img, (str, unicode)):
img = imread(img)
if len(img.shape) == 3: # img is (now) a RGB(a) numpy array