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

Add support for very large scans #10

Open
dvkch opened this issue Apr 7, 2023 · 0 comments
Open

Add support for very large scans #10

dvkch opened this issue Apr 7, 2023 · 0 comments
Assignees

Comments

@dvkch
Copy link
Owner

dvkch commented Apr 7, 2023

In some situations, especially on iOS, the device available memory can be maxed out be a large scan. Especially if we scan multiple files, in the current architecture all scans are kept in-memory up until they are saved by the Application.

It should be doable to scan to a file direct, appending data using an NSFileHandle, and generating previews using Data(contentsOf: URL, options: .mappedIfSafe) as the CGImage data provider.

It would be extremely harder though to support exotic image formats like RGB 1bit that require manipulating data that was already scanned.

This is currently not a priority

@dvkch dvkch self-assigned this Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant