Skip to content

Conversation

shural
Copy link
Contributor

@shural shural commented Dec 27, 2020

  1. Fix core data merge conflict in FileCache, context.save()
  2. Fix task synchronization in getting folder uuid in WebDAVStorage
  3. Replace some prints with os_log.

2. Fix task synchronization in getting folder uuid in WebDAVStorage
3. Replace some prints with os_log.
…ARK", as FFMPEG does not build and also enable real device debugging w/o Apple developer account.

2. GPS view changed to hybrid.
data.withUnsafeBytes {
let bytes = $0.baseAddress?.assumingMemoryBound(to: UInt8.self)
if let cfData = CFDataCreate(kCFAllocatorDefault, bytes, data.count),
let source = CGImageSourceCreateWithData(cfData, nil) {
Copy link

@Adlai-Holler Adlai-Holler Feb 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Encoding the entire image just to get the exif data from it? That's pretty yucky. Can we go find the original file instead?

If we have to do this, at least cast the data to a CFData instead of copying the whole thing.

EDIT: NM I just read the comment. Yeah we need to go find the original encoded NSData for the image – UIImage is too late.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants