Skip to content

Compression of Images

Vrinda edited this page Mar 27, 2023 · 1 revision

Overview

Compression of images triggered by a scheduler may be used in the following cases :

  • images previously stored to archive were not compressed because no compression rule was configured.
  • compression rules are configured, but avoid storage failures of objects to archive if compression of the images fails.

Configuration

Using Archive UI

  1. Go to Menu->Configuration, then on Devices page, Edit the dcm4chee-arc device. Edit Extension of Device Extension, then Edit Extension of Archive Device.
  2. Configure values for fields Compression Polling Interval, Compression Fetch Size, Compression AE Title, Compression Schedule(s) and Compression Threads and Save.

Using LDAP

One may either

  • create a LDIF file (e.g.):

      version: 1
      dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
      changetype: modify
      add: dcmCompressionPollingInterval
      dcmCompressionPollingInterval: P1D
      -
      
      dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
      changetype: modify
      add: dcmCompressionSchedule
      dcmCompressionSchedule: hour=22-24
      -
      
      dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
      changetype: modify
      add: dcmCompressionAETitle
      dcmCompressionAETitle: TEST_ARCHIVE_1
      -
      
      dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
      changetype: modify
      add: dcmCompressionFetchSize
      dcmCompressionFetchSize: 10
      -
      
      dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org
      changetype: modify
      add: dcmCompressionThreads
      dcmCompressionThreads: 10
      -
    

    and import it to the LDAP Server by using the ldapmodify command line utility.

  • or use the Add Attribute... and Add Value... function of Apache Directory Studio to add attributes on Device level (e.g.: dicomDeviceName=dcm4chee-arc) in the Archive Configuration.

One may refer to Archive Device
to understand the description of attributes.

Refer ISO-8601 Duration format for more know-how on Durations.

Go to the Control tab on Configuration page in archive UI and reload the configuration.

Clone this wiki locally