uiimagepickercontroller

iPhone: How to change camera photo quality

I've not found a answer to this question anywhere, but this seems like a typical problem: I am taking pictures from an iPhone 4, and I have to send these pics to a server through a POST-Request, but the server does not accept pictures that are bigger than 0,5 MB, so I have to compress the pictures before I send them. In order to achieve ...

[iPhone] UIImagePickerController on iPhone 4 device

Hi @ll! This is no typical programming question. I am currently developing an app using the latest SDK. This app will use the UIImagePickerController for taking pictures with the built-in camera. I know the new iPhone 4 has 2 cameras built in. But the simulator doesn't support the camera in any way, so there's is now way to test the cam...

Enable UIImagePickerController video compression

Is there a way to enable video compression on video files recorded with UIImagePickerController? When videos are selected from cameraroll with UIImagePickerController they are automatically compressed. Are there any other way of compress a video? I've got access to the file with a NSURL. ...

How to compress Video data while taking video from camera ?

Hey Guys, Is there any way to compress the video data while taking from camera ? There is huge difference in video data bytes from taking camera and from photo library.I want to reduce some memory while taking video from camera. Is any way ? Thanks ...

UIImagePickerController - save selected images

Hello, I'm trying to save a selected image to a directory. My code is as follows: -(IBAction)attachPhotosButton { UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; [self presentModalViewController:imagePicker animated:YES...

iOS 4: FigCreateCGImageFromJPEG returned -1

I'm trying to get a basic image picker/photo taker running in my app and have run into the following error: *** ERROR: FigCreateCGImageFromJPEG returned -1. Input (null) was 551120 bytes I have the image picker showing, the camera view works fine. When I take an image with the camera and select the 'use' button the error appears in...

How to add UIImagePickerController as a sub view instead of Modal View

I have a segment controller on one of my views and now on the 0th index of segment controller I want to add UIImagePickerController (for showing camera view to user) by adding as sub view and not by ModalViewController. Right now the view gets loaded but It does not show any camera view. I am able to show the camera view by presentModalV...

UIImagePickerController in camera mode gets 'stuck' with the shutter closed

Occasionally in low-memory conditions the UIImagePickerController I use gets 'stuck' with the shutter closed. Generally when this the WatchDog is allready jettisoning other background apps so within a second or two the low memory condition is over, yet the UIImagePicker controller is still stuck. Has anyone else encountered this and im...

how do I remove the curtain opening effect with uiimagepickercontroller

when I do [self presentModalViewController:picker animated:NO]; there would be always a "8 pieces of blade opening and then the preview shows" kind of effect. my questions is how do i skip the balde opening part and jump right to the preview? is there a way to do that? also can i hold/resume preview programmatically? ...

issue of displaying an image in secondviewcontroller

Hi!! Am new to this forum and also new to IPhone development. Following is the issue: I have two views named pickerviewcontroller and secondviewcontroller which has different xib files. I choose a picture through the UIImagePickerController interface from the Photo Library, I was trying to display the chosen image in the second view. cod...

displaying an image in secondviewcontroller

Hi!! Am new to this forum and also new to IPhone development. Following is the issue: I have two views named firstviewcontroller and secondviewcontroller which has different xib files. I choose a picture through the UIImagePickerController interface from the Photo Library, I was trying to display the chosen image in the second view. [co...

iPhone UIImagePickerController: show camera preview on top of openGl viewport

Hi, i've a question about UIImagePickerController class reference, in photo-camera mode. I'm developing an OpenGl game. I should add to game photo-camera features: game should open a window (say for example 200x200 pixels, in the middle of screen), that display in real time a preview of photo-camera IN FRONT OF GL VIEWPORT. So photo-ca...

How to keep reference to file, saved in Photo Library.

I want to get a file from the Camera or the Photo Library and I know how to get the file using the UIImagePickerController. The thing I don't know is how to keep reference to that file in my source ( for example, I want to save some record, and my record has reference to the image in Photo Library). Example User captures photo with c...

iPhone video recording: "cameraCaptureMode 1 not available because mediaTypes does contain public.movie"

Hi guys, I try to record a video. The message I got is from the following code on the device: UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera; imagePickerController.allowsEditing = YES; imagePickerControll...

UIImagePickerController exception : "Source type must be UIImagePickerControllerSourceTypeCamera"

what is wrong with this? I really don't understand some important parts for UIImagePickerController.... here's the source: UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; imagePickerController.cameraCaptureMod...

Changing NavigationBar Title of UIImagePickerController

Hi Everyone, I want to know how we can change the navigation bar title of UIImagePickerController. I tried several ways but couldn't do it. tried the follwing ways, imgPicker.title = [NSString stringWithString:@"My Name"]; imgPicker.navigationItem.title = [NSString stringWithString:@"My Name"]; But it still gives me the default titl...

UIImagePickerController Image Orientation

Can anyone tell me how to use the UIImagePickerController (camera and album) delegates determine the image's orientation, rotate accordingly, and assign it to a UIImageView? ...

iPhone SDK Photopicker sample - impossible to add a subview!

That's pretty simple to test and explain. If you get the PhotoPicker sample, and you add a UILabel to the timedPhotoFire:timer method, like this: - (void)timedPhotoFire:(NSTimer *)timer { //ADD THIS LABEL HERE UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(200, 180, 50, 30)]; [label setText:@"Hello!"]; [self...

iPhone Full screen camera uiimagepickercontroller preview

In iOS3 to get a full screen preview a scale of 1.12412 was enough. CGFloat cameraTransformX = 1.12412; CGFloat cameraTransformY = 1.12412; picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, cameraTransformX, cameraTransformY); } Scaling x and y to avoid distortion. In iOS4 using this scaling leaves a b...

UIImagePickerController creation hangs for several seconds

I'm trying to show a UIImagePickerController after a button is clicked in an UIActionSheet. The code is straightforward. However, the call to [[UIImagePickerController alloc] init] is hanging for several seconds before it finishes. I don't see this behavior in the simulator, but am seeing it on an iPod and iPhone. Here are the UIActionS...