Preventing MFMailComposeViewController from scaling animated GIFs

匆匆过客 提交于 2020-01-01 10:11:56

问题


I'm attaching an animated GIF to an email to be sent with MFMailComposeViewController. If the GIF is of sufficient size the MFMailComposeViewController will ask the user whether they want to resize it to a smaller size. Unfortunately, the animation will not be preserved in the resized image.

How do I either forbid MFMailComposeViewController to resize the image or make it preserve the animation?


回答1:


There’s no built-in API to do this, but one option is to compress the animated GIF into a ZIP, then attach that. The MFMailComposeViewController won’t offer to resize the ZIP (unless it’s peeking into its contents).



来源:https://stackoverflow.com/questions/5522948/preventing-mfmailcomposeviewcontroller-from-scaling-animated-gifs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!