gpambrozio / gusutils Goto Github PK
View Code? Open in Web Editor NEWUtility classes and categories for iOS
License: MIT License
Utility classes and categories for iOS
License: MIT License
setDateOriginal and setDateDigitized format date in UTC, but I found both iPhone and my Canon camera only save dates in local time.
Every other code sample I've seen uses an array, instead of a string. Interestingly, using an array or a string for kCGImagePropertyIPTCKeywords both work (the array lets you set multiple keys of course).
I have a valid location object, however, when trying to set it in the dictionary, the subj error is thrown.
Here's my code
NSMutableDictionary *metadata = [[NSMutableDictionary alloc] initWithDictionary:videoCamera->exif ];
if (self->location) {
[metadata setLocation:location];
}
Thanks.
Hi,
Thanks for your great work. Great library. How do I use this in an ARC project?
Thanks in advance.
Best.
This is minor, however.
I managed to get the current location of a photo that is taken with the iPhone camera but how can I get the location of a photo that was chosen from the library? Is this possible to do this, as for now when I choose a photo from the library it's location is set to the current location and not where the photo was taken.
in:
imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
I use this to get location of the photo taken with the camera:
NSMutableDictionary *metadata = [[NSMutableDictionary alloc] initWithDictionary:[info objectForKey:UIImagePickerControllerMediaMetadata]];
[metadata setLocation:currentLocation];
NSLog(@"Metadata location for taken photo:\n%@", metadata.location);
The log says:
Metadata location for taken photo:
<+55.60409927,+12.99382114> +/- 0.00m (speed -1.00 mps / course -1.00) @ 2014-05-08 kl. 10:55:12 Centraleuropa, sommartid
But when i use:
NSMutableDictionary *metadata = [[NSMutableDictionary alloc] initWithInfoFromImagePicker:info];
NSLog(@"Metadata for chosen photo:\n%@", metadata);
The log says:
Metadata for chosen photo:
{
}
could you help me understand how to use your category properly for images chosen from the library?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.