Issue with DICOM File Size and Performance in Orthanc

Hi everyone,

I’m facing an issue where DICOM files received from modalities are quite large. As a result, studies load very slowly in viewers like Stone or OHIF, and downloads also take a lot of time.

I tried optimizing this based on suggestions in previous community posts by setting:

“IngestTranscoding”: “1.2.840.10008.1.2.4.50”,
“DicomToJpegTranscodingQuality”: 50

However, there’s no change in file size for existing studies, and the performance issue remains the same. The files are still as large as when originally uploaded.

Is there any effective method to actually reduce the DICOM file size in Orthanc?

Also, is there any plan to support attaching DOC/DOCX files (like PDF or JPEG) directly in Orthanc? I believe this feature would be very useful, especially if combined with a “history” column for better tracking.

Thanks in advance!

Hello,

1.2.840.10008.1.2.4.50 indicates “JPEG Baseline”, which only supports 8bpp. You are presumably trying to encode a radiology image with 10bpp or 12bpp. In such a case, the Orthanc logs would contain a line such as:

W0525 09:36:24.212220          DICOM-1 DcmtkTranscoder.cpp:403] DCMTK was unable to transcode from 1.2.840.10008.1.2.1 to one of: 1.2.840.10008.1.2.4.50 Can not transcode to 1.2.840.10008.1.2.4.50 if BitsStored != 8

In addition, the option DicomToJpegTranscodingQuality does not exist. As indicated in the documentation, you are looking for option DicomLossyTranscodingQuality. Looks like yet another ChatGPT hallucination that wastes everyone’s time.

No, the DICOM standard does not support the embedding of DOC/DOCX files in a DICOM envelope. This is not specific to Orthanc. However, in Orthanc, you could use the “attachments” feature that allows you attach an arbitrary file (including DOC/DOCX) to a DICOM study, series, or instance.

Just a reminder: I already answered this same question from you two months ago.

Regards,
Sébastien-

Hi Sébastien, thanks for your reply !

I’ve managed to reduce my DICOM files size 20-30% and can now easily attach DOC/DOCX files to studies in Orthanc, with help of python .