When you open a picture in your photo album and you select a picture there is an edit button top right which opens up auto enhance/red eye and crop features. Is there a way to get this view/screen in iOS SDK?
If you're using UIImagePickerController to allow the user to select images from their library you can set its allowsEditing property to yes. I think this only allows the cropping feature though, not the red-eye. If you want a red-eye feature you'd have to do it yourself, consider Core Image auto adjustment.
As #Wain stated, with UIImagePickerController you can't do much with the allowsEditing set to YES other than crop/resize.
See Core Image Programming Guide for more information on editing photos.
Additionally, there are third-party libraries and SDK's that'll allow you to edit the image more thoroughly.
AviarySDK is easy to set up and use in your apps. You can download their sample app for free in the app store if you want to see what it can do. Check it out here: http://aviary.com/
Related
Is there a way to use the default iOS camera controls with react-native-camera? Here's a screenshot of what I'm talking about:
I'd like to use this standard iOS UI for taking a photo, toggling front/back camera, toggling flash, etc, and not create buttons for each of those from scratch. Thanks for any help.
Answering my own question here: react-native-image-picker is a better choice for this task. It lets the user either pick a photo from their camera roll OR use the native camera (with default iOS controls) to take a photo.
I integrated a so called OLFacebookImagePicker into my application.
From Here.
For my app I need images to be cropped to squares like the allowsEditing
of the native UIImagePickerController does.
My Question is:
Is it possible to integrate this feature in a custom PickerController?
I've got the idea to MAYBE get the images from the OLFacebookImagePicker
into the app and manipulate them afterwards. But I want to give the users the chance to customize their pictures by themselves.
Let's say I'm writing a word-processing application. Users can embed images using the app. Now since the application is not a photo editor, naturally it would delegate photo editing of embedded images to other applications.
The question is, how to do that? How to invoke photo editing extensions in an iOS app?
Theoretically it should be as simple as passing an image, invoke the extension, and then get another image back as the "edited" image. However the SDK documentation doesn't seem to provide any hint on how to do this.
Looks like the SDK doc actually says it doesn't provide a UI per se:
When using built-in editing controls, the image picker controller enforces certain options. For still images, the picker enforces a square cropping as well as a maximum pixel dimension. For movies, the picker enforces a maximum movie length and resolution. If you want to let the user edit full-size media, or specify custom cropping, you must provide your own editing UI."
From:
https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/PickinganItemfromthePhotoLibrary.html
I'm looking at the Adobe Creative SDK Image Editor, which seems to provide a UI. Might show some of their branding in the photo editor, however. Hope to follow up...
In my app, i want users to click a photo, then i want to allow them to edit it for crop/rotate/straighten. Can i use built-in photos app for that? or is there any open-source/api to have similar view controller.
I know it's a possible duplicate of Is there a view controller for image crop and rotate works like iOS 8 photo.app? but i found no answer here as well.Please let me know if it's possible?
Unfortunately, no.
UIImagePickerViewController allowEditing property, when set to YES, provides you a very simple cropping UI, but it doesn't support advanced rotation as iOS Photo app.
So you'll have to make it yourself.
The github projects in the question you linked might be a good starting point for that. (here's another one)
Good luck !
I wrote one in Swift, you can continue to develop based on this: QCropper
Basically I want to know if it's possible to add an effect similar to when you open Newsstand with no magazines and you encounter an effect where you can kind of see the user wallpaper with a blur effect added onto it.
I sort of managed to get the wallpaper onto the app with a few .plist settings changes, but want to know if theres a better way that also adds the blur effect.
regards,
Patricio
You can use the UIImage category that Apple provides in its sample code, that allows you to blur a UIImage with a variety of styles and colours.
https://developer.apple.com/downloads/index.action?name=WWDC%202013
Search the page for UIImageEffects, download it. Open the project, and you'll find a UIImage category you can move to your project.
More on this topic can be found in the Engaging UIs in iOS7 WWDC 2013 talk.