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 COG processing for large images #891

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Conversation

danlamanna
Copy link
Member

related github.com/ImageMarkup/tracker/issues/123

@danlamanna danlamanna force-pushed the isic-123-add-cog-viewer branch 7 times, most recently from 7d51f76 to 889f4f6 Compare July 10, 2024 20:34
stripped_blob_stream.seek(0)
accession_blob = self._generate_blob_as_cog(img)
else:
accession_blob = self._generate_blob(img)
Copy link
Member

Choose a reason for hiding this comment

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

Needs better function naming.

is_cog=True,
)
self.blob = accession_blob.blob
self._accession_blob_field.pre_save(self, add=False)
Copy link
Member

Choose a reason for hiding this comment

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

Can this be avoided?

self.blob = accession_blob.blob
self._accession_blob_field.pre_save(self, add=False)

return accession_blob
Copy link
Member

Choose a reason for hiding this comment

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

@brianhelba look at this

Suggested change
return accession_blob
yield accession_blob

@danlamanna danlamanna force-pushed the isic-123-add-cog-viewer branch 4 times, most recently from a4f4f50 to 8d26809 Compare July 11, 2024 16:33
isic/settings.py Outdated Show resolved Hide resolved
node-src/cog.mjs Outdated Show resolved Hide resolved
@danlamanna danlamanna merged commit 60bc9c3 into master Jul 25, 2024
2 checks passed
@danlamanna danlamanna deleted the isic-123-add-cog-viewer branch July 25, 2024 16:43
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