SLComposeViewController should support multiple image formats for upload, specifically Twitter
| Originator: | colinhumber | ||
| Number: | rdar://20976709 | Date Originated: | May 15, 2015 |
| Status: | Open | Resolved: | No |
| Product: | iOS SDK | Product Version: | 8.3 (12F70) |
| Classification: | Reproducible: | Always |
Summary: Twitter is very aggressive in their JPEG image compression, and images uploaded from the SLComposeViewController to Twitter are always sent as JPEGs. The resulting uploaded images look awful and have a ton of artifacts. I would be great if SLComposeViewController some way to configure the desired upload format for attached images. If I upload the exact same photo using the SLRequest directly, and force the content type to be image/png, the uploaded image looks great without any issues. But forcing the content type to be image/jpeg produces artifacts as well. Steps to Reproduce: I've included a sample app. 1. Configure a Twitter account though Settings.app 2. Launch the sample app 3a. Tap the "Upload with Share Sheet" button 3b. Tap the "Upload JPEG" button 3c. Tap the "Upload PNG" button 4. Check Twitter Expected Results: The uploaded image should be the same quality that was provided by the application. Actual Results: Only the image uploaded in 3b is of the same quality. The images uploaded in 3a and 3c have artifacts. Version: 8.3 (12F70) Notes: Configuration: iOS Simulator and devices
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!