-
Notifications
You must be signed in to change notification settings - Fork 334
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
Image appears zoomed and cropped #106
Comments
Is this happening for this Stack of images only? or other stacks work fine? |
It happens on all stacks, and I've tried just swapping out my source URLs with random images. It still gives me a zoomed in and cropped image. |
hmmm, the demo examples are working fine (https://www.cornerstonejs.org/docs/examples) I'm wondering if this is related to your metadataProvider. How are you loading the images? |
Using the cornerstone webimageloader library. The metadata gives back exactly what is shown with the exception that the custom metadata checks if type is |
Hi, I'm having the same error, I'm using the latest versions of the packages and still having errors when loading the example Image I'm getting this result, also working with the cornerstoneWebImageLoader if it's a metaprovider error, please can someone show the correct values for this, because in the code examples the metadaprovider are not similar to the examples that are in the documentation. https://www.cornerstonejs.org/docs/how-to-guides/custom-metadata-provider is nothing clear to the data that need to be defined in the provider for the viewer to work. sorry for bothering you both |
Any idea what might be causing the image to be cropped? I've seen similar issues in the older version, but a lot of the API has changed, and I am unsure how to approach it. I've tried changing the camera options but it doesn't appear to do anything for the stack version.
The image currently looks like this:

It should look like this:

This is a stack view. I've added the zoom and pan tool, but it seems like the image is still cropped.
Changing the properties or camera through
setCamera
andsetProperties
doesn't appear to do anything. I tried directly settingsHeight
andsWidth
, but that also doesn't appear to help.Possibly Software Versions:
These are the current viewport settings:

These are the metadata associated with the image using a custom metadataprovider with cornerstonewebimageloader
(not a real patient below)
The text was updated successfully, but these errors were encountered: