# compress orthanc 1.9

**URL:** https://discourse.orthanc-server.org/t/compress-orthanc-1-9/3222
**Category:** Google Groups archive
**Created:** [January 12, 2023, 12:18am UTC](https://discourse.orthanc-server.org/t/compress-orthanc-1-9/3222 "2023-01-12T00:18:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vihupe](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/v/b9e5f3/32.png) [@vihupe](https://discourse.orthanc-server.org/u/vihupe)
#### Post date: [January 12, 2023, 12:18am UTC](https://discourse.orthanc-server.org/t/compress-orthanc-1-9/3222/1 "2023-01-12T00:18:20Z")

</div>

Hi.

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?

Config:  
orthanc.json

“AcceptedTransferSyntaxes” : [“1.2.840.10008.1.\*”],

// 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

“DicomScuPreferredTransferSyntax” : “1.2.840.10008.1.2.4.57”,

result image:

Thank you very much for any input you may have.

Victor

![Captura de pantalla 2023-01-11 211602.jpg](https://discourse.orthanc-server.org/uploads/default/original/1X/7a054a5fdaa4be96147ecb123782b01f4d87865f.jpeg)

---

<div class="post-metadata">

### Author: ![alainmazy](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/alainmazy/32/1576_2.png) [@alainmazy](https://discourse.orthanc-server.org/u/alainmazy)
#### Post date: [January 12, 2023, 9:42am UTC](https://discourse.orthanc-server.org/t/compress-orthanc-1-9/3222/2 "2023-01-12T09:42:33Z")

</div>

Hi Victor,

Have you tried setting the “IngestTranscoding” configuration ?

HTH

Alain.

```auto
  // 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,

```
