Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing MFMailComposeViewController from scaling animated GIFs

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?

like image 996
Mark Probst Avatar asked Apr 02 '11 11:04

Mark Probst


1 Answers

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).

like image 170
Jeff Kelley Avatar answered Sep 17 '22 14:09

Jeff Kelley