reduce camera photo library image file size for less than 100 KB in iphone

0 votes

I want to reduce the image file size that takes from UIImagePickerController. I use this method

NSData *imageData = UIImageJPEGRepresentation(image, 0.1);

But it reduces the 2.2 MB image file size to 300 KB I want my image file size becomes less than 100 KB.

Nov 4 in IOS by Soham
• 9,670 points
33 views

1 answer to this question.

0 votes

The simplest technique to reduce the size of an image in kilogrammes is to do so in pixels. Reduce it in size:

CGFloat scaleSize = 0.2f;
UIImage *smallImage = [UIImage imageWithCGImage:image.CGImage
                      scale:scaleSize
                      orientation:image.imageOrientation];
answered Nov 8 by Rahul
• 9,680 points

Related Questions In IOS

0 votes
0 answers

Add animated Gif image in Iphone UIImageView

In UIImageview, I must load an animated ...READ MORE

Sep 27 in IOS by Soham
• 9,670 points
76 views
0 votes
0 answers

How to set audio file as ringtone in iphone programmatically?

I've developed a programme. I may select ...READ MORE

Nov 16 in IOS by Soham
• 9,670 points
26 views
0 votes
0 answers

How I can open native alarm clock in iphone by using code?

I need to create a sample app ...READ MORE

Sep 22 in IOS by Soham
• 9,670 points
43 views
0 votes
0 answers

How to create Multiple Themes/Skins for iphone apps?

I already have an iPhone app that ...READ MORE

Sep 28 in IOS by Soham
• 9,670 points
61 views
0 votes
0 answers

iPhone system font

What is the name of the default ...READ MORE

May 16 in Others by Kichu
• 19,040 points
56 views
0 votes
1 answer

iPhone system font

The iPhone system interface uses Helvetica or ...READ MORE

answered Sep 20 in Others by Aditya
• 7,660 points
96 views
0 votes
1 answer

Getting country calling prefix

For a class that offers both this ...READ MORE

answered Sep 20 in Others by Aditya
• 7,660 points
77 views
0 votes
1 answer

Is there a way to to check if a picture was taken on that iPhone?

Actually, the model and manufacturer information is ...READ MORE

answered Sep 22 in IOS by Rahul
• 9,680 points
38 views
0 votes
1 answer

Detecting iPhone 6/6+ screen sizes in point values

The device screen will be the first ...READ MORE

answered Sep 22 in IOS by Rahul
• 9,680 points
73 views
0 votes
1 answer

Can I embed a custom font in an iPhone application?

This is supported by iOS 3.2 and ...READ MORE

answered Sep 22 in IOS by Rahul
• 9,680 points
57 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP