-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
CompositeVideoClip([xxx]).rotate(90) ValueError: axes don't match array #1042
Comments
bg_clip.rotate(90, expand=False) would give what you want. |
code in moviepy->video->fx->rotate.py,line 58~63,that's why 89.99 worked. |
image will lose part of it when expand is set to true,so this should be the workaround |
I just copy the code in line 69 to line 59
then it works fine,I don't know why we do this specialized processing when the angle is set to |
Hi, it definitely seems like it is a bug to do with RGBA images. See #781 and #990 for the same error message. The reason why angles 90, -90, 180 and -180 are special is because they can be easily done by directly transposing the image array using numpy. More complicated rotations require pillow, which is an optional library, and may perform the rotations slower. However, if this bug cannot properly be fixed, then it might be worth using the pillow method as a fall back. |
Fixed in #1335 |
Expected Behavior
Specifications
Actual Behavior
ValueError: axes don't match array
The text was updated successfully, but these errors were encountered: