Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-11-2010, 09:02 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 1
Chowbrisky is on a distinguished road
Question Prevent MFMailComposeViewController from resizing image attachments?

I'm using the basic MFMailComposeViewController through the iPhone SDK to attach images and send e-mails from within an app. The big problem I have is that, if I have HTML enabled (isHTML:YES), the control takes it upon itself to add reduced width and height values to the image element within the HTML that it generates. The actual image is still sent at its original resolution, but the recipient sees it in a reduced format due to the width/height attributes iPhone embeds.

For instance, below are images sent and what iPhone sets as width and height in the HTML:

Code:
50x50   = <img src="cid:..." id="..." width="50" height="50"> (Good)
320x240 = <img src="cid:..." id="..." width="300" height="225"> (Reduced)
320x480 = <img src="cid:..." id="..." width="300" height="450"> (Reduced)
480x320 = <img src="cid:..." id="..." width="300" height="200"> (Reduced)
640x480 = <img src="cid:..." id="..." width="300" height="225"> (Reduced)
As you can see, any image wider than 300px is scaled down, but it is only scaled down via the HTML and is still sent in its original form. If there is a way for me to disable this "feature" or manually specify the width and height attributes I would extremely appreciate it. The other option is to send as plain text but doing so results in many individual attachments both for the image and the signature each time, and does not look good at all. Thanks for any help!
Chowbrisky is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 346
11 members and 335 guests
bignoggins, carlandrews, cgokey, givensur, hzwegjxg, jenniead38, linkmx, mraalex, PixelInteractive, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:57 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0