Why does my movie from UIImages gets distorted?

2020-02-08 06:08发布

I'm using zoul's solution to export UIImage array as a movie. But my frames all turns out distorted. Here's the original image:

original image

Here's a similar distortion example:
similar distortion example

I've read here that it has something to do with aspect ratio, but there's no explanation on how to fix it.

2条回答
放我归山
2楼-- · 2020-02-08 06:55

I'v encountered this problem too, and I found the reason is the image's size is not the multiple of 16, you can change the size and have a try.

查看更多
家丑人穷心不美
3楼-- · 2020-02-08 06:59

After a lot of experiments with different image sizes, and with the help of this article, I've got to the conclusion that the width of the images must be a multiple of 16.

查看更多
登录 后发表回答