Coder Social home page Coder Social logo

gusutils's People

Contributors

futuretap avatar gpambrozio avatar markpmiles avatar prisonerjohn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gusutils's Issues

UTC vs local date

setDateOriginal and setDateDigitized format date in UTC, but I found both iPhone and my Canon camera only save dates in local time.

Should setKeywords: use NSArray?

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).

ARC

Hi,

Thanks for your great work. Great library. How do I use this in an ARC project?

Thanks in advance.
Best.

Getting location

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.