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

Optimizing when reading arrays rather than images from tiff files #1423

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

manthey
Copy link
Member

@manthey manthey commented Jan 8, 2024

Specifically, if we want a numpy array, reading a jpeg encoded tile as the raw image bytes and then decoding it with simplejpeg or PIL is slower than having libtiff decode it. If, however, we want to serve a jpeg, it is quicker to never decode it, so this code path remains the same.

Specifically, if we want a numpy array, reading a jpeg or jp2k encoded
tile as the raw image bytes and then decoding it with simplejpeg or PIL
is slower than having libtiff decode it.  If, however, we want to serve
a jpeg, it is quicker to never decode it, so this code path remains the
same.
@manthey manthey merged commit 852193e into master Jan 8, 2024
11 checks passed
@manthey manthey deleted the tiff-optimizations branch January 8, 2024 14:55
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.

1 participant