uiimagejpegrepresentation Questions

3

I would like to apply a filter to a photo from the user's library then write it back to disk. I'm using UIImageJPEGRepresentation. This function takes a UIImage and a compressionQuality value betwe...
Declaration asked 12/10, 2014 at 22:6

7

Solved

I would like to compress images (camera/photo library) and then send it to the server. I know I can compress by height and width, but I would like to compress the images by size to a fixed size (20...
Giraffe asked 29/2, 2012 at 21:25

2

Solved

I'm working with PhotoKit and have implemented filters users can apply to photos in their Photo Library. I am currently obtaining the image, applying a filter, returning the edited version as a CII...
Syncopated asked 12/1, 2015 at 6:23

1

I am using alamofire to send Image to server with multipart. multipartFormData.append(UIImageJPEGRepresentation(self.imageDet[0].image!,0.5)!, withName: "filestream", mimeType: "image/jpeg") I h...
Selfpossession asked 12/3, 2018 at 14:31

1

Sometimes images picked from the photo album with UIImagePickerController are cropped differently than how the user wants to crops it. This happens in approx. 1 of 50 image uploads. When it happens...

1

Solved

I'm currently making a photo editing app. When a photo is selected by the user, it is automatically converted into black and white using this code: func blackWhiteImage(image: UIImage) -> Data...

9

Solved

I would like to zoom in/out an UIImage object when the user performs the standard pinch action on my application. I'm currently using a UIImageView to display my image, if that detail helps in any ...
Headley asked 1/2, 2009 at 2:10

3

Solved

i will like to pick an images from UIImagepicker, there are PNG and JPG format in camera roll. and i need to convert it into NSData. However i need to know if this images is UIImageJPEGRepresentat...

2

I'm using UIImagePNGRepresentation to save an image. The result image is of size 30+ KB and this is BIG in my case. I tried using UIImageJPEGRepresentation and it allows to compress image, so ima...

0

I am trying to save an UIImage object to an .jpeg file in device and I am using this code: -(void)saveImageToDocumentsDirectory:(UIImage *)mimage withFileName:(NSString *)fileName { UIImageWrite...
Brittain asked 12/1, 2016 at 10:5

1

Solved

I am creating a multipart image data upload request. i am getting NSData from UIImage by UIImageJPEGRepresentation but when i try to convert the data into string i am getting nil value i have foll...
Mezzorelievo asked 3/6, 2015 at 15:20

3

Solved

I wish to extract the image using ALAssetsLibrary and ALAsset directly in the form of a NSData object. Using a NSURL I take out the image in the following manner. NSURL *referenceURL =newURL; ALA...
Ipa asked 12/12, 2011 at 10:47

1

I have calculated image size in bytes by converting image into NSData and its data length got wrong value. NSData *data = UIImageJPEGRepresentation(image,0.5); NSLog(@"image size in bytes %lu",(...
Reduplication asked 29/5, 2014 at 5:9

1

Solved

I am writing a .jpg file to my app's Documents directory like this: NSData *img = UIImageJPEGRepresentation(myUIImage, 1.0); BOOL retValue = [img writeToFile:myFilePath atomically:YES]; Later, I...
Phosgenite asked 22/2, 2011 at 17:1

1

Solved

On iOS 4.2 when I use UIImagePickerController to let the user select a image from the photo library these are the dictionary keys that are returned to me: 2011-03-02 13:15:59.518 xxx[15098:307] di...

1

Solved

On a iPhone app, I need to send a jpg by mail with a maximum size of 300Ko (I don't no the maximum size mail.app can have, but it's another problem). To do that, I'm trying to decrease quality unti...
Indorse asked 16/4, 2010 at 19:59
1

© 2022 - 2025 — McMap. All rights reserved.