The UIImage class docs indicate you shouldn't create images larger than 1024 x 
1024. You will either need to make sure your server will never send down an 
image larger than that, or download the image and downsample it to a reasonable 
size.

Dave

On Aug 11, 2010, at 12:46 AM, SanthoshKumarGundu wrote:

> Hi,
> 
> Can any one  have an idea of  what is the maximum  image limit(size and 
> resolution) in iphone?.
> 
> There are some images in web server. In my application , I am  getting  these 
> as NSData (one image at a time)  and displaying the image  using the 
> following code
> 
> NSData *imageData = [[NSData alloc]initWithContentsOfURL:[NSURL 
> URLWithString:imageURLString]];
> UIImage *sampleImage = [UIImage imageWithData:imageData];
> 
> This is working fine for small images ( upto  1MB of size and resolution of 
> 1024*1024).
> 
> But for large images ( 3MB size and resolution of 2500*2500), the application 
> is getting crashed.
> 
> Can any one advise me on this.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to