DICOM transcoding in Orthanc for compatibility and compression

How Orthanc changes DICOM transfer syntaxes to fit viewers, storage and bandwidth, and what to decide, configure and verify before you go live.

On this page

Why DICOM transcoding in Orthanc matters for compatibility and compression

DICOM transcoding in Orthanc changes the transfer syntax of images as they pass through the server, so a study received in one encoding can be delivered to a viewer or modality in another. Teams need it when images arrive in compressed transfer syntaxes that some viewers, workstations or modalities cannot decode, or when storage capacity and network bandwidth are under pressure and the archive should hold smaller files. The four operations to separate are decompressing (converting to an uncompressed syntax for readers that cannot decode compression), compressing (encoding to a compressed syntax to save space or transfer time), refusing syntaxes (rejecting incoming transfers in syntaxes the site does not accept), and transcoding itself, which is the conversion between any two syntaxes. Each can be applied on ingest, when instances are stored, or on the fly, when a request for a specific syntax is served from the stored original.

The choice between ingest and on-the-fly transcoding is an architectural decision with consequences for storage growth, CPU load and what downstream systems see. Ingest conversion gives every consumer the same stored syntax but discards the original encoding unless the site keeps a copy, so the team should decide early whether lossy compression is acceptable for clinical use and who owns that decision. On-the-fly conversion keeps the original and serves alternatives on demand, which shifts cost to request time. Before designing either path, confirm with the radiology, PACS and modality owners which syntaxes each system accepts, and check the exact transfer syntax options and configuration keys in the Orthanc Book for the release you plan to run, since the feature set and its memory behavior have changed across recent releases. The Orthanc NEWS file lists those changes.

How a DICOM request moves through Orthanc transcoding

The path starts at a modality or PACS that sends an instance over DICOM. Orthanc first checks whether it accepts the offered transfer syntax, then optionally transcodes on ingest before storing the instance. On retrieve or REST access, a viewer or peer can receive a different syntax, so the decision points and their configuration are the places to verify.

Decision points in Orthanc where transfer syntax is accepted, converted and served.

Which transcoding direction fits your environment

Viewers and workstations sometimes cannot decode a compressed transfer syntax, so the usual fix is to decompress to an uncompressed syntax before the study reaches them. This moves cost onto the server and onto the network, because uncompressed studies are larger. Decompression to an uncompressed syntax is lossless, so pixel data is unchanged, but the stored or delivered files grow.

  • Direction: compressed to uncompressed (Explicit VR Little Endian is the common target, to be confirmed with the viewer).
  • Fidelity: lossless in the decompression direction, so pixel values are preserved.
  • CPU and size: decoding costs CPU per request, and larger files add transfer time.
  • Scope: apply the conversion on the route to the specific viewer, not to the whole archive, so other clients keep compressed copies.
  • Caching: check whether repeated on-the-fly decoding is acceptable or whether a cached copy is needed.

Confirm with the viewer vendor which transfer syntaxes it accepts over DICOM and DICOMweb, and whether it handles multi-frame and encapsulated pixel data.

Transcoding options in Orthanc and when each fits

This table compares the main ways to handle transfer syntaxes in Orthanc: refusing them, transcoding on ingest, transcoding on the fly, and keeping originals. Read each row as a decision point, with the storage, latency and reversibility trade-off in the last columns. Confirm exact option names and behavior against the Orthanc Book configuration reference for your Orthanc version before you change a production server.

OptionWhat it doesStorage and latency trade-offWhen it fits
Accept and store as receivedKeeps every instance in the transfer syntax the modality sent, including compressed formatsLowest processing cost at ingest, storage follows the sender's compression, viewers may need decoding supportModalities send syntaxes your viewers already read and storage is not the constraint
Refuse unsupported transfer syntaxesRejects associations or instances whose transfer syntax is not on the allowed listRejected data must be resent, so modality queues and retries matter; no extra storageCompliance or downstream rules require a fixed set of syntaxes and senders can be reconfigured
Transcode on ingestConverts instances to a chosen syntax as they arrive and stores only the converted copyCPU cost is paid once at ingest; reversibility is lost if the original is not kept elsewhereViewers need one uncompressed or known syntax and you accept permanent conversion
Transcode on the flyStores the original and converts only when DICOM or DICOMweb retrieval requests a different syntaxStorage stays at original size; each retrieval adds CPU and latency, and caching behavior should be testedMixed client fleet needs different syntaxes while archive storage is the main cost
Keep originals alongside converted copiesRetains the source instance and a converted copy as separate objectsHighest storage use; both copies must be backed up and kept in sync with deletion rulesClinical or audit requirements call for the unaltered original
Lossy compression for storageApplies a lossy syntax to reduce sizeSmaller files, but pixel data changes and conversion is not reversibleOnly where the clinical and regulatory owner has approved lossy storage for the modality

Setting up transcoding in Orthanc step by step

This sequence moves a transcoding decision from an inventory of what each modality, PACS and viewer sends and accepts to a tested Orthanc configuration that stores and returns the transfer syntaxes you chose. Each step ends with a check, so problems surface on a test instance before production traffic reaches it.

  1. Inventory transfer syntaxes at every source and destination

    The imaging team and the administrators of each modality, PACS and viewer list the transfer syntaxes each system sends and the ones it can read. Ask each vendor to confirm the list in writing, because device settings and firmware often differ from what the marketing sheet says. Record the results in a table with one row per system, marking which syntaxes are sent, accepted and never supported. The step is done when every source and every consumer has a row and each open question has a named owner.

  2. Decide which syntaxes to keep and which to convert

    Using the inventory, the clinical and informatics leads decide which syntaxes Orthanc stores, which it returns to each destination, and which it refuses. Keep the uncompressed or lossless syntaxes that a viewer needs for diagnostic work, and document any lossy syntax as a deliberate choice with its clinical sign-off. Write the decision as a short table that maps each source and destination to a stored syntax and a returned syntax. The step is done when every row has a decision and a reviewer has signed off on lossy handling.

  3. Set the transcoding configuration on a test instance

    An administrator installs a non-production Orthanc instance, using the same Orthanc version planned for production, and sets the transcoding and transfer syntax options that match the decision table. Confirm the exact configuration keys, their names and their behavior against the Orthanc Book for that version, because keys change between releases. Keep the file under version control so the change can be reviewed and reverted. The step is done when the instance starts cleanly and the logs show the expected settings loaded.

  4. Send sample studies from each source

    The team sends a small set of representative studies from each modality, PACS and viewer to the test instance, including at least one study per compressed syntax on the inventory list. Use the same AE titles, ports and network path as production so that association negotiation behaves the same way. Keep a record of each study's source, transfer syntax at send time, and any association rejection. The step is done when every source has delivered at least one study that Orthanc accepted, or each refusal has a logged reason and an owner.

  5. Verify stored syntax with a DICOM tool

    After the test sends, the team inspects the stored instances through the REST API or the Explorer interface and confirms the transfer syntax of each one matches the decision table. Use an independent DICOM tool, such as DCMTK or dcm4che, to read the files directly from the storage area, so the check does not rely on Orthanc reporting on itself. Pixel data should decode correctly on a sample image, and the metadata must still contain the patient and study identifiers. The step is done when each stored instance has a matching syntax and a pixel-level spot check passes.

  6. Retrieve studies and verify returned syntax

    The team retrieves the test studies from each destination, using C-MOVE or C-GET for classic DICOM endpoints and the REST API for viewers that request DICOMweb or the Orthanc API, and records the transfer syntax that arrives. Check that viewers open the images without errors and that a destination which cannot read compressed data receives the decompressed syntax it expects. Compare the returned files with the originals using the same DICOM tool. The step is done when every destination opens its sample studies and the returned syntax matches what the decision table requires.

  7. Document the result and plan the production change

    The team records the final configuration, the test results, the known refusals and the owners of each source and destination in a change record. Confirm with the clinical and security leads that lossy syntaxes and any refused inputs are accepted, and schedule a rollback path that restores the previous configuration. Repeat the inventory whenever a modality, viewer or Orthanc version changes, since transcoding behavior can shift with each upgrade. The step is done when the change record is approved and a retest date is assigned to the next version change.

Security and operational risks of changing transfer syntaxes

Changing a transfer syntax alters the bytes that clinicians, measurement tools and AI models read, and it can change what the archive still holds. The cards below cover fidelity, downstream tooling, audit trails and access control, which should be decided together before any transcoding rule goes live.

Diagnostic fidelity after lossy compression

Lossy transfer syntaxes discard pixel information that cannot be recovered, so a compressed copy is not equivalent to the source. Decide per modality and per use which syntaxes are acceptable for diagnostic reading, and record the compression settings used. Ask your radiology and physics leads to sign off the rule set before it runs against live studies. Confirm with the modality and viewer vendors which lossy syntaxes they accept for primary reads.

Altered pixels breaking downstream tools

Measurement software, AI detection models and quantitative tools may be calibrated on the original pixel data. A transcoded or decompressed instance can shift their output even when the image looks identical on screen. Inventory every consumer that receives transcoded output, then test each one against paired original and transcoded studies. Confirm the validation claims each vendor makes for compressed input.

Audit trail gaps when originals are discarded

If Orthanc stores only the transcoded copy, the record of what was received and what was altered becomes harder to reconstruct. Keeping the original instance alongside the derived one lets you explain any later dispute about image content. Define retention for both versions, and confirm that your deletion and anonymization workflows treat them consistently.

Retrieval access through the REST API

Transcoded objects are often retrieved over the REST API or DICOMweb, which adds a path outside DICOM association rules. By default Orthanc accepts HTTP only from localhost. If RemoteAccessAllowed is enabled, set AuthenticationEnabled to true, define users in RegisteredUsers, and serve traffic over HTTPS through a reverse proxy. Test that unauthenticated requests fail for transcoded endpoints as well as originals.

Orthanc security FAQ

Keeping script and export routes disabled

The Orthanc security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files. Transcoding rules often tempt teams to add scripted helpers, so keep both routes disabled in production and confirm this in the deployed configuration. Route any new automation through reviewed Lua or Python handlers instead.

Orthanc security FAQ

Change control for transfer syntax rules

A single change to which syntaxes are accepted or produced can alter what every connected modality and PACS receives. Version the rule configuration, test changes on a staging instance with representative studies, and record who approved each change. Ask your operations team how a rollback would be executed and how quickly it could be verified.

Questions buyers ask about Orthanc transcoding

Is transcoding DICOM images in Orthanc lossy?

It depends on the source and target transfer syntaxes. Converting between uncompressed syntaxes and lossless compressed syntaxes keeps the pixel data identical, while converting to a lossy compressed syntax discards information permanently. Before any change, decide which transfer syntaxes are lossless for your modalities and which are lossy, and record that decision in your policy. Re-encoding a lossy image into another lossy syntax compounds the loss, so avoid chained conversions. Confirm the exact syntax list and quality settings with your clinical and radiology leads, since they determine what viewers and reading workflows will receive. Orthanc's own documentation on transcoding and the Orthanc Book should be the first technical read for your team.

What drives the cost of an Orthanc transcoding project?

Cost is driven by the number and complexity of transfer syntaxes you must handle, the size of the existing archive, and how many systems consume the converted images. A small set of syntaxes on a modest archive is a much shorter job than a mixed estate with many modalities, viewers and PACS endpoints. Archive size matters because any re-encoding of stored data needs compute time, storage capacity and validation effort. Ongoing costs include maintaining the converter rules and retesting after Orthanc upgrades. Our Orthanc 1.13.0 release on 2026-08-15 changed how transcoding and caching work, so plan for regression testing whenever you upgrade. When requesting a quote, ask for a breakdown by syntax, archive volume, endpoints and validation, and for which items are one-time versus recurring.

How long does a transcoding pilot take in Orthanc?

A pilot's duration depends on its scope: how many transfer syntaxes it covers, which modalities and viewers it tests, and whether it includes a copy of production data. A narrow pilot that converts one syntax for one viewer can be scoped in days of planning and testing, while a pilot covering ingest rules, on-the-fly conversion and several endpoints takes longer. We do not publish fixed timelines. Agree the pilot scope, success criteria and test images in writing before work starts, and ask for the schedule as part of the quote. Note that data acceptance by clinical users often takes more time than the technical conversion itself.

What does our team need to provide for a transcoding engagement?

Your team needs to provide the inventory of modalities, PACS, viewers and AI tools that send or receive images, the transfer syntaxes each one supports, and a sample of representative studies. You also need a named owner who can approve the lossy versus lossless policy, access to the Orthanc hosts or a test copy, and a change window for testing against live systems. Radiology or clinical informatics staff should review converted images, because technical checks alone do not confirm diagnostic acceptability. Expect to provide access to logs and to the people who maintain each endpoint. Listing these inputs early makes the quote more accurate.

Can our own team handle Orthanc transcoding in-house?

Yes, a team with DICOM and Orthanc experience can build transcoding in-house, and the official documentation covers the concepts. The main risks are not the configuration itself but the clinical acceptance rules, the regression testing across modalities and viewers, and keeping the setup working through upgrades. Assess whether your team has DICOM networking skills, can run test associations, and has time to maintain the rules after each Orthanc release. If those gaps exist, a partner can cover them under a fixed scope. DeployOpen plans, implements and documents self-hosted Orthanc inside your infrastructure, so you keep operational control either way.

How does a quote for Orthanc transcoding work?

A quote follows from a written scope. Most engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts. DeployOpen does not publish a price list. To prepare a useful request, provide the syntax matrix, the endpoints involved, the archive size, the validation expectations and whether you need ongoing support. Ask the vendor to separate one-time implementation, testing and documentation from recurring items such as retainers for support, upgrades and continuous testing. Ask what is excluded, how changes to scope are priced, and what acceptance tests close the engagement.

Which Orthanc transfer syntaxes should we refuse?

Refuse the transfer syntaxes that your viewers, PACS or AI tools cannot read, and any lossy syntax your clinical policy does not permit for storage or diagnostic use. Make the list explicit in configuration rather than relying on defaults. Test each rejection, because a rejected association can look to a sender like a connectivity failure. Keep the refusal list under version control and review it whenever you add a modality or viewer. Do not accept a syntax on one route and refuse it on another without documenting why.

Does Orthanc transcoding affect security or access control?

Transcoding itself does not change who can read images, but it changes what gets stored and served, so it should sit inside your existing access model. Converted instances are new copies, which means your retention, deletion and audit rules must cover them too. Remote REST access should follow the Orthanc security guidance: keep authentication enabled, define users, and use HTTPS behind a reverse proxy. Also keep the script execution and export routes disabled, as the Orthanc security documentation advises. Your compliance team should review how converted copies fit into your records of processing and retention controls.

How DeployOpen scopes and delivers Orthanc transcoding

DeployOpen treats Orthanc transcoding as a scoped change to how images are accepted, stored and served inside your infrastructure. We first agree which transfer syntaxes each viewer, modality and peer needs, then build, test and document the routing and conversion rules before any production traffic is changed.

How we scope

  • Inventory every modality, PACS, viewer and peer that sends or receives images, with the transfer syntaxes each one accepts today.
  • Agree which syntaxes Orthanc should refuse, convert on ingest, or convert on the fly, and record the decision in the written scope.
  • Confirm which Orthanc version, database plugin and deployment model your environment runs before any rule is designed.

How we build

  • Configure transcoding rules in your own Orthanc instances, in your cloud accounts, data centers or air-gapped networks.
  • Test each syntax path with sample studies from your modalities, checking pixel data, tags and storage size after conversion.
  • Confirm that refused transfer syntaxes return the expected DICOM response and that the rules behave the same across all instances.

How we hand over

  • Deliver a written configuration record listing each syntax rule, its trigger, its owner and the reason it exists.
  • Document the rollback steps, the test studies used and the known limits of each conversion for your clinical and technical teams.
  • Walk your administrators through monitoring, log review and the checks to repeat after an Orthanc upgrade.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer if your team wants DeployOpen to keep the setup current.
  • Retest transcoding rules after each planned Orthanc core, plugin or PostgreSQL change in your environment.
  • Ask for a quote based on the written scope, since DeployOpen does not publish a price list and most engagements are fixed-scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.