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

feat: Add support for loading images with blob urls #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

meetmangukiya
Copy link

Register blob as scheme instead of blob:http or blob:https because
cornerstone-core splits on : and uses the first part as the scheme. So,
if provided a url blob:https://github.com/test-id it will consider blob
as the scheme instead of blob:https.

Closes #13

Register `blob` as scheme instead of `blob:http` or `blob:https` because
cornerstone-core splits on `:` and uses the first part as the scheme. So,
if provided a url `blob:https://github.com/test-id` it will consider `blob`
as the scheme instead of `blob:https`.

Closes cornerstonejs#13
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 5.263% when pulling ff48ce5 on flamy-dev:blobs into fd92993 on cornerstonejs:master.

@meetmangukiya
Copy link
Author

meetmangukiya commented Jul 3, 2020

Not sure how the coverage got decreased since we are just importing the whole module for giving an illusion of coverage(I think)?

Also, can we have a release after this is merged @chafey(mentioning for notification since no new commit in last 6 months and you are mentioned as package author) ?

@meetmangukiya
Copy link
Author

In the meanwhile if anyone wishes to use this I've published it to github package - https://github.com/flamy-dev/cornerstoneWebImageLoader/packages/297934

@Inzeppelin
Copy link

This change would be extremely useful. Thanks @meetmangukiya
@coveralls It's quite obvious that this PR can't affect your tests.

What do expect me to do in order to help with merging this one?

@meetmangukiya
Copy link
Author

@Inzeppelin don't think this is going to be merged, better fork

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.

Add loadFileRequest and fileManager infrastructure
3 participants