> On 7 Jan 2023, at 23:31, Gabriel Zachmann via Cocoa-dev 
> <cocoa-dev@lists.apple.com> wrote:
> 
>> 
>> I wonder if there is a method to load the EXIF data out of the files without 
>> opening them completely.  That would seem like the ideal approach.
> 
> That's the approach I am looking for, but I haven't found any API to do that.

I’m sure you’ve tried the following, but in case you haven’t:

* investigate mmapping each file into memory and use a version of the API that 
takes NSData/CFData instead of a file/URL to get the EXIF information. 

* if the files are indexed by Spotlight, can you get the EXIF information from 
a NSMetadataQuery search?

Chris
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to