def ipy_image(self) -> IPyImage:
"""
Converts a clip to an image.
"""
raw = self.environment.parent.output.bytes_of(self.first_frame)
return IPyImage(
data=raw,
format="png",
embed=True,
unconfined=True,
width=self.first_frame.width,
height=self.first_frame.height
)
评论列表
文章目录