We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Previously ImageClip has an attribute of 'resize'. But it doesn't work now, Any one knows how to resize now ?
AttributeError: type object 'ImageClip' has no attribute 'resize'
Thank you.
The text was updated successfully, but these errors were encountered:
The resize function is added as an attribute to VideoClip only when using the moviepy.editor module:
resize
VideoClip
moviepy.editor
from moviepy.editor import ImageClip original = ImageClip('img.png') resized = original.resize(0.5)
However, you can import it directly from the moviepy.video.fx.resize module and use it like so:
moviepy.video.fx.resize
from moviepy.video.VideoClip import ImageClip from moviepy.video.fx.resize import resize original = ImageClip('img.png') resized = resize(original, 0.5)
Sorry, something went wrong.
No branches or pull requests
Previously ImageClip has an attribute of 'resize'. But it doesn't work now, Any one knows how to resize now ?
AttributeError: type object 'ImageClip' has no attribute 'resize'
Thank you.
The text was updated successfully, but these errors were encountered: