I am working on a camera app in which the pictures I take should store the location as to where they were taken. So maybe after a while, if I want to know where a particular picture was taken, I should click on a button, say above my photo album, which should re-direct me to a mapview. There, it should show the places where i've taken all my pictures, with an album for each place.
Any idea on how to make this work?
here are some links which is related to your question.
Get Exif data from UIImage
UIImagePickerController and extracting EXIF data from existing photos
Add MetaData to UIImage. Same metadata of UIImage can be used to know images's location.
Refer Save_Photo_to_Album_with_Metadata
Related
I am new to iPhone programming. Does anyone know how to give custom name to a picture which was taken using the mobile camera? After that the picture has to be saved along with that name in the photo gallery.
Can anyone figure out a solution for this?
Thanks
Add MetaData to UIImage. Same metadata of UIImage can be used to know images's information.
Refer Get Exif data from UIImage.
Refer UIImagePickerController and extracting EXIF data from existing photos
You can't do this.
Because iOS saves it with a asseturl.
You can't add your meta data along with an image in the photolibrary.
And you can only access the photo using assets library.
I have an imagePickerController that is used for importing photos from library into my app.
When in ALAssetsLibraryAssetForURLResultBlock, I'm trying to find out if the ALAsset I've got in the block is a photo taken as a screen-shot or is it a "genuine" photo, taken by the camera.
I've tried to go through the ALAsset's metadata dictionaries but couldn't find any flag / indication that might fit.
Anyone have any ideas?
For screenshot, its UTI is always a "public.png" and same size as screen (be sure you have multiply [UIScreen scale] on screen bounds width and height), just need to check these 2 metadata, you can easily identify screenshot.
Add MetaData to UIImage while saving to Photo Library. Same metadata of UIImage can be used to know if its screenshot or not.
Refer Save_Photo_to_Album_with_Metadata
Well, I was researching and experimenting .. and the closest solution I've found is based on the fact that iPhone screenshots don't yield EXIF records (while all other generated photos do generate them).
Therefore, once a photo is selected in the picker, I'm checking if the photo's metadata consists an EXIF record and if it doesn't - I conclude that the photo was screenshot.
I found it's the "as good as it gets" solution for now, although it's not an official one.
Cheers.
I'm using the UIImagePickerController to choose an image, and display it to the user immediately. However, I want the user to be able to swipe, and the next image from the album appears. The question is, how do I access the next image in the album after the initial user-selected image, programmatically?
With UIImagePickerController you just can't.
You need to use the ALAssets Library for that.
See this example: Accessing photo library using assets library
Best,
Christian
I would like to store severals photos like photo application, however i don't know exactly the objects what i need. If anyone know how to implement this way i'm interested.
A link to give you an idea: http://blog.photobox.fr/wp-content/uploads/2010/07/Album-iPhone5.jpg
thank you in advance.
You can try the PhotoViewer provided in three20 framework. It is exact replica of the Photos app of iPhone, if that's what you're looking for. You can find a tutorial here.
go to this link it help u
https://github.com/kirbyt/KTPhotoBrowser
Having spoken to an Apple engineer on some of the optimizations that they went through on the Photos app, I can give you a couple of tips:
They never display back the original photo. Because of a photo's size, they only take the original photo and save off a number of optimized thumbnail images.
The example image you show does not contain a series of thumbnail images. Each row is actually a single image. For selection, an overlay is placed in the exact size and dimension of the thumbnail image to give the impression that you are selecting a particular image. This could be accomplished by using a table view, but it more likely just a scroll view.
Is there any Image API available in iPhone?? so using that API I can develop a functionality to get all information of that photo in iPhone.
Thanks in advance.
You need to look at the ImageIO framework
http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/ImageIOGuide/imageio_intro/ikpg_intro.html#//apple_ref/doc/uid/TP40005462
yes, since IOS4 http://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/ALAsset_Class/Reference/Reference.html
depending on what you want exactly, this deals with the camera output.
The question is very fuzzy: please make it more exact.
if you want to get information about the size of the image, orientation, type etc, you can use the UIImage and CGImage classes which will give you information about the image itself. (size, colors, pixel size etc)..
If you want to get or access pictures in the Photos app of the iphONE, ALAssetsLibrary is what you need to read about - you can save and get images and videos from the iPhone's native album.
If you want the metadata saved alongside each image - like the location it picture was taken, the lens size, date taken etc.. - I am unsure how one gets that data.