is there a way to decompress already compressed dicom files in dicomdirectory because I have more than 100000 instance I want to decompress
thank you
is there a way to decompress already compressed dicom files in dicomdirectory because I have more than 100000 instance I want to decompress
thank you
Hi,
The files are compressed using zlib (https://book.orthanc-server.com/faq/features.html#compression) and I do recall seeing an example python script to decompress the files but I can’t find it now. There is a tool in the Orthanc repo that may help. https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Samples/Tools
Cheers,
James
Is theree anyway to implent this repo into windows since I have a lot of files
That need to be transformed
Thank you
في Monday, November 29, 2021 في تمام الساعة 9:01:47 AM UTC+3، كتب ja…@binary.com.au رسالة نصها:
The Windows installers provided by Osimis contain the “OrthancRecoverCompressedFile.exe” command-line tool that can be used to decompress files from the “OrthancStorage” directory, if the “StorageCompression” configuration option of Orthanc is set to “true”.
I try to upen orthancrecovercompressedfile.exe but it just does not show up and nothing has changed
في Monday, November 29, 2021 في تمام الساعة 10:13:06 AM UTC+3، كتب s.jo...@gmail.com رسالة نصها:
The tool is a command line tool that needs to be run on each file individually
Maintenance tool to recover a DICOM file that was compressed by Orthanc.
Usage: OrthancRecoverCompressedFile.exe [output]
If “output” is not given, the data will be output to stdout
If you wish to migrate all your Orthanc DB from compressed to uncompressed, you should probably start another instance and replicate the content from the original orthanc to the new one using this kind of script:https://book.orthanc-server.com/users/replication.html#generic-replication
HTH,
Alain
As an alternative, one could use the REST API of Orthanc to this end: Loop over all the instances stored in Orthanc by GET-ting “/instances”, then POST on “/instances/{…}/attachments/dicom/uncompress”:
https://book.orthanc-server.com/users/rest.html
https://api.orthanc-server.com/#tag/Instances/paths/~1instances~1{id}~1attachments~1{name}~1uncompress/post
You could also use WebDAV to directly access the uncompressed files:
https://book.orthanc-server.com/users/webdav.html
thank you all for your response
I have found easier way to do it, I have transferred all study to another dicom node using C-move protocol then re import all the dicom files to the orthanc server using orthanc explorer
في Wednesday, December 1, 2021 في تمام الساعة 11:28:48 AM UTC+3، كتب s.jo...@gmail.com رسالة نصها: