DICOMcloud / DICOMcloud

Azure friendly DICOMweb part 18 .NET server with qido-rs, wado-rs, stow-rs, wado-uri RESTful implementation
http://dicomcloud.azurewebsites.net/
Apache License 2.0
219 stars 103 forks source link

How to generate a series thumbnail #29

Open zsyy94 opened 6 years ago

zsyy94 commented 6 years ago

hi,Since loading the viewer is too long, I want to add a series list page, but I don't know how to generate the series thumbnail. so,Need your help,thanks!

Zaid-Safadi commented 6 years ago

The server doesn't support generating thumbnails at the moment. Although, this could be accomplished by supporting the image parameters in the WADO-URI then passing them to the JpegMediaWriter

Please feel free to add this feature in a PR if you feel like it.

However, if you want to display a representative image of a query "qido-rs" there is an experimental feature that allows you to pass a header in the request and returns a representative SOP Instance studyUID:seriesUID:instanceUID for each query result. You can then read this header and use it to request that instance in JPEG format from the WADO-URI service.

You can check the code of this feature here: https://github.com/DICOMcloud/DICOMcloud/blob/development/DICOMcloud.Wado/Services/QidoRsService.cs#L280