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, 2022 in IOS by Soham
• 9,710 points
779 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, 2022 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, 2022 in IOS by Soham
• 9,710 points
504 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, 2022 in IOS by Soham
• 9,710 points
602 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, 2022 in IOS by Soham
• 9,710 points
381 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, 2022 in IOS by Soham
• 9,710 points
625 views
0 votes
0 answers

iPhone system font

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

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

iPhone system font

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

answered Sep 20, 2022 in Others by Aditya
• 7,680 points
1,430 views
0 votes
1 answer

Getting country calling prefix

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

answered Sep 20, 2022 in Others by Aditya
• 7,680 points
839 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, 2022 in IOS by Rahul
• 9,680 points
658 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, 2022 in IOS by Rahul
• 9,680 points
932 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, 2022 in IOS by Rahul
• 9,680 points
621 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