Rotate an image around its x-axis
问题 I need to rotate an image around its x-axis (or y-axis). I can easily create such an animation with avisynth, but now I need to implement that effect with Python's moviepy module. I can easily rotate an image with the following script but need some clues how to rotate it in 2D or 3D. from moviepy.editor import * clip = ImageClip('my_image.jpg') rotated_clip = (clip.add_mask() .fx(vfx.resize, width=300, height=300) .fx(vfx.rotate, lambda t: 90*t, expand=False) .set_duration(5)) final_clip =