I need Orthanc to automatically perform compression 1.2.840.10008.1.2.4.57 not only when it receives studies from another PACS or modality, but also when uploading from a local folder.
I have made this configuration in the ORTHANC.JSON file:
However, upon checking the logs in the following image, I understand that it is not compressing. Do you have any suggestions on how to configure it to automatically compress the images upon receiving the studies?
// User-friendly groups of transfer syntaxes that can be enabled or
// disabled at once. These options are applied after the main
// “AcceptedTransferSyntaxes” option has been applied (if present).
“DeflatedTransferSyntaxAccepted” : true,
“JpegTransferSyntaxAccepted” : true,
“Jpeg2000TransferSyntaxAccepted” : true,
“JpegLosslessTransferSyntaxAccepted” : true,
“JpipTransferSyntaxAccepted” : true,
“Mpeg2TransferSyntaxAccepted” : true,
“RleTransferSyntaxAccepted” : true,
“Mpeg4TransferSyntaxAccepted” : true, // New in Orthanc 1.6.0
“H265TransferSyntaxAccepted” : true, // New in Orthanc 1.9.0
Have you tried setting the “IngestTranscoding” configuration ?
HTH
Alain.
// If this option is set, Orthanc will transparently transcode any[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l792)
// incoming DICOM instance to the given transfer syntax before[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l793)
// storing it into its database. Beware that this might result in[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l794)
// high CPU usage (if transcoding to some compressed transfer[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l795)
// syntax), or in higher disk consumption (if transcoding to an[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l796)
// uncompressed syntax). Also, beware that transcoding to a transfer[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l797)
// syntax with lossy compression (notably JPEG) will change the[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l798)
// "SOPInstanceUID" DICOM tag, and thus the Orthanc identifier at[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l799)
// the instance level, which might break external workflow.[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l800)
/**[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l801)
"IngestTranscoding" : "1.2.840.10008.1.2",[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l802)
**/[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l803)
[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l804)
// Whether ingest transcoding is applied to incoming DICOM instances[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l805)
// that have an uncompressed transfer syntax, i.e. Little Endian[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l806)
// Implicit, Little Endian Explicit or Big Endian Explicit (new in[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l807)
// Orthanc 1.8.2).[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l808)
"IngestTranscodingOfUncompressed" : true,[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l809)
[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l810)
// Whether ingest transcoding is applied to incoming DICOM instances[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l811)
// that have a compressed transfer syntax (new in Orthanc 1.8.2).[](https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Configuration.json#l812)
"IngestTranscodingOfCompressed" : true,