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

Apple Notes: Fix older drawings, scans, and a few other things #137

Merged
merged 6 commits into from Oct 19, 2023

Conversation

mirnovov
Copy link
Contributor

@mirnovov mirnovov commented Oct 17, 2023

Possibly fixes #134 and possibly fixes #135

Fixes the importer being unable to find the location of the drawing fallback image under certain circumstances (definitely pre-iOS 17 but a ZGENERATION may not be generated under other circumstances as well).

Fixes scans not being generated when the nicely cropped version of the image can't be found, by finding the camera photo and using that. (The cropped and flattened version may be stored somewhere else for older note versions but I never used the scan functionality before testing this, and the other Apple Notes importers just always use the camera photo so I can't see what they do. So short of me downgrading to an old macOS and iOS version I won't be able to determine that)

This also includes a few minor patches that didn't quite make it in #125

@mirnovov mirnovov changed the title Apple Notes: Fix older drawings not importing Apple Notes: Fix older drawings and scans not importing Oct 18, 2023
@mirnovov mirnovov changed the title Apple Notes: Fix older drawings and scans not importing Apple Notes: Fix older drawings and scans, and tweak a few other things Oct 18, 2023
@mirnovov mirnovov changed the title Apple Notes: Fix older drawings and scans, and tweak a few other things Apple Notes: Fix older drawings, scans, and a few other things Oct 18, 2023
@kepano
Copy link
Collaborator

kepano commented Oct 18, 2023

I can confirm that #135 is resolved — importing scans works for me now.

However #134 is not solved under the conditions I described in the issue

iOS 17.0.3 to create the drawing, then synced it to my Mac running macOS 13.0.1

I am still getting the same text inside the note

**(error reading attachment)**

@mirnovov
Copy link
Contributor Author

mirnovov commented Oct 18, 2023

@kepano Should be fixed now, I've spent the morning setting up a test vault on an older version of macOS and managed to reproduce the issue.

@kepano
Copy link
Collaborator

kepano commented Oct 19, 2023

Beautiful! Drawings are working for me now.

@kepano kepano merged commit a925dcf into obsidianmd:master Oct 19, 2023
@mirnovov mirnovov deleted the fix-scans-drawings branch October 28, 2023 01:48
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.

Apple Notes: Scans not imported Apple Notes: Drawings not imported
3 participants