Creating a large GIF with CGImageDestinationFinalize - running out of memory

前端 未结 2 1940
面向向阳花
面向向阳花 2021-01-30 23:12

I\'m trying to fix a performance issue when creating GIFs with lots of frames. For example some GIFs could contain > 1200 frames. With my current code I run out of memory. I\'m

2条回答
  •  执念已碎
    2021-01-30 23:40

    If you set kCGImagePropertyGIFHasGlobalColorMap to NO then out of memory will not happen.

提交回复
热议问题