Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Critical fixes in handling resolving cryptomator v7 folder uuid, and 2 other minor changes. #39

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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