Displaying JPEG 2000 images in Orthanc with the GDCM plugin

When Orthanc stores JPEG 2000 studies that viewers cannot display, the fix usually depends on which decoder handles the transfer syntax. This page explains when the GDCM plugin is needed, how it changes decoding, viewers and transcoding, and what to verify before you change production.

On this page

Why JPEG 2000 Orthanc studies fail to preview and how the GDCM plugin addresses it

When study lists load but certain previews stay blank or fail, the most likely cause is that Orthanc cannot decode the compressed transfer syntax of those instances. The fastest route to test is the GDCM plugin, which takes over decoding for a defined set of compressed syntaxes that the default decoder handles poorly or not at all. Before changing anything, identify the failing instances, read their transfer syntax UID from the DICOM header, and confirm that the failures match the syntaxes the plugin is meant to cover. A blank preview on one modality and a working preview on another often points to exactly this difference.

The GDCM plugin is expected to replace the DCMTK-based decoding path for the listed syntaxes, so that Orthanc's decoded pixel data, and therefore the viewers that rely on it, can display images that previously failed. Treat the exact list of supported syntaxes as something to verify, not assume. Confirm on the Orthanc Book plugins page which syntaxes the GDCM plugin covers, and confirm that a build of it exists for the Orthanc version you run, since plugin availability depends on the core release. Note the exact Orthanc version in your environment before you start, because the plugin list and the decoding behavior should be checked against that version.

DeployOpen plans and implements this change inside your own infrastructure, including the Orthanc host, Docker or package installation, and the viewers in front of it, so that patient images never leave systems you control. The work includes confirming which syntaxes your archive actually contains, testing decoding on representative studies, and checking that the plugin change does not alter how existing studies are stored or transcoded. Ask any partner to show a test plan built on your own sample instances before agreeing to a scope.

Which decoding path fits which symptom

This table compares the four practical options for JPEG 2000 and other compressed transfer syntaxes that Orthanc or its viewers cannot display. Read each row against the symptom you reproduced, then confirm the effect on viewers, transcoding and stored originals using your own test set before changing production.

OptionWhen it fitsEffect on viewers, transcoding and originals
Keep the default decoderAffected instances display correctly in your viewers and no decode errors appear in logsViewers and transcoding behave as today. Stored originals are unchanged. Confirm this against the exact instances that failed before.
Add the GDCM plugin for decodingPreview or decode fails for JPEG 2000 or other compressed syntaxes, and the failing syntaxes are covered by GDCMOrthanc decodes these syntaxes through GDCM instead of the default path, which can change previews and transcoded output. Stored originals are not rewritten. Confirm the plugin version matches your Orthanc version.
Transcode affected instances to a syntax viewers handleA specific viewer or downstream system cannot read a syntax and you need a uniform output for that consumerViewers receive the converted syntax. Transcoding creates new copies, so storage use and processing time grow. Originals remain unless you delete them. Confirm the target syntax and any lossy steps with the clinical owner.
Change the viewerThe viewer itself lacks support for the syntax, and decoding in Orthanc is not the bottleneckOrthanc storage and transcoding are unchanged, but the viewer, its browser requirements and its access model change. Confirm the new viewer's supported syntaxes and its integration with your authorization setup.
Investigate before choosingSymptoms are intermittent, appear only in one viewer, or you have not yet identified the transfer syntax of failing filesNothing changes until the failing syntax, the decoder in use and the viewer path are recorded. Confirm the transfer syntax UIDs and Orthanc logs for each failing study first.

How the decoder chain affects viewers and transcoding

When a viewer or the transcoding route asks Orthanc for a rendered or re-encoded image, Orthanc reads the stored pixel data, identifies its transfer syntax, and passes the compressed frames to a decoder before anything can be drawn or converted. For JPEG 2000 and other compressed syntaxes, that decoder is the part of the chain the GDCM plugin is meant to supply. The consequence for operations is that a failure at this step rarely announces itself as a decoding error. The viewer shows a blank panel, a spinner that never resolves, or a preview that falls back to a thumbnail, and the administrator sees only a generic failed request in the logs. Before blaming the browser or the viewer plugin, confirm which decoder handled the request by checking the Orthanc logs for the instance and the plugin load messages at startup.

Decoding does not change the stored file. The DICOM instance in the storage area keeps its original transfer syntax and pixel data, and a decode only produces an in-memory or temporary result for that request. Transcoding is different: it creates new DICOM instances in a different transfer syntax, and those new instances are stored, indexed and sent like any other instance. Each transcoded output therefore needs its own checks, such as confirming that the transfer syntax is what the receiving system expects, that patient and study identifiers are intact, and that the image renders correctly in the viewer that will display it. Treat a transcoding job as a data change, not a display change, and record which decoder and Orthanc version produced it.

The Orthanc NEWS file records that version 1.13.0, released on 2026-08-15, included a complete rewrite of storage-area access and DICOM parsing and transcoding to improve caching and reduce memory use. Any change in the parsing or transcoding path can alter which requests reach the decoder and how errors surface, so decoding should be retested after every core upgrade, not assumed to work because it worked before. Build a short test set that covers each compressed syntax in use, run it through the viewer and through a transcoding request on a staging copy, and compare results against the previous version. Keep the test set and its expected results with the change record so that a future regression can be traced to the upgrade that caused it.

Setup sequence for enabling GDCM and verifying previews

This sequence moves a JPEG 2000 decoding fix from diagnosis to production in a controlled order, so each change is tested against the exact studies that fail. The result is a documented plugin version, a staging result that matches expectations, and a rollback path the operations team has already rehearsed.

  1. Inventory the failing transfer syntaxes

    The Orthanc operations or PACS team collects error lines from the Orthanc logs and records the transfer syntax UID of each affected instance, along with the modality and viewer where the failure appears. They then pull a representative sample of studies from each failing group, including at least one study per modality that sends JPEG 2000 data. The step is complete when the team has a written list of transfer syntaxes, the number of affected studies for each, and the viewers that fail on them. Do not assume every failure is JPEG 2000. Some reports will point to other compressed syntaxes that also need decoding support, and the list keeps the scope honest.

  2. Confirm plugin availability for your version and platform

    Before downloading anything, confirm that the GDCM plugin has a build for your exact Orthanc version and for your platform, whether that is a Windows installer, a Linux package or a Docker image. Check the plugin list and downloads on the official Orthanc Book and download pages, and record the version pairing in your change ticket. The check is done when you can name the plugin build, the Orthanc core version it loads with, and the image tag or package you will deploy. If the plugin and core versions do not match, stop and resolve that with the vendor documentation, because a mismatched plugin will not load cleanly.

  3. Install the plugin in a staging instance

    The platform engineer installs the GDCM plugin on a staging Orthanc that mirrors production in version, operating system and plugin set, but holds no patient data. They add the plugin to the configuration and review the plugin documentation for the decoding-related configuration keys, rather than copying keys from an older article or forum post. Confirm each key name and default in the documentation for your release before you set it. The check is that Orthanc starts without plugin load errors, the plugin appears in the startup log or system information, and the staging configuration is saved under version control.

  4. Load the failing sample into staging

    The team uploads the sample studies from step one to the staging instance using the same route the failing modality or PACS uses, such as DICOM store or the REST API. They then retrieve each instance and record whether the upload is accepted, whether the index shows the expected series and frame counts, and whether any errors appear in the logs. Keep the original files unchanged so the results can be compared with production later. The check is a table with one row per sample and columns for accepted, indexed, decoded and error text, so no failure is recorded only as a vague report.

  5. Verify previews and transcoding output

    A clinical or imaging informatics reviewer opens the sample studies in each viewer your users rely on, and checks that every frame renders with the expected orientation, windowing and image dimensions when compared with the source. In parallel, an engineer requests transcoding of a few instances to an uncompressed or other target syntax through the transcoding route, and compares pixel data and metadata against an independently decoded reference. Document any differences in bit depth, color space or frame count. The step is complete when viewers render the samples correctly, the transcoded output matches the reference within the tolerance your clinical owner signs off, and any remaining differences have a recorded explanation.

  6. Test rollback in staging

    Before production, the operations team removes the plugin from the staging instance and restores the previous configuration, then confirms that the instance starts and that previously working studies still open. They also restore a database and storage snapshot taken before the change, if your environment includes one, to prove the recovery path works. Record the exact commands or container image references used to revert, and assign an owner for the decision to roll back. The check is a signed rollback record showing the instance returned to its prior state with no data loss.

  7. Roll out to production with monitoring

    The team applies the same tested configuration and plugin version to production during an agreed change window, using the same deployment method as staging. They confirm startup logs, re-run a small set of the sample studies through each viewer, and watch error rates and memory use for the period agreed in the change record. If a sample fails or errors rise, the team executes the tested rollback. The step is complete when production studies from the failing groups display correctly, the change record is closed with the results from both staging and production, and the configuration is stored in version control for the next Orthanc upgrade.

Which fix applies once a study fails to preview

The path starts when a study will not preview in the viewer. First check the transfer syntax of the failing instances, since that decides whether the default decoder can handle them. If the syntax is JPEG 2000 or another compressed format outside the default path, check whether the GDCM plugin supports it. Then separate viewer failures from transcoding request failures, because they have different fixes. The branches lead to installing and testing GDCM, transcoding the affected instances, or changing the viewer.

Decision path from a failed preview to the matching fix.

Security and operations to plan with a decoder change

A decoder change touches patient images, the plugin stack and the people who view studies, so it needs the same controls as any other Orthanc change. The cards below cover change control, licensing, data residency, viewer access and handling of logs and test data.

Route the plugin through change control

Treat the GDCM plugin like any other Orthanc plugin update. Record the core version, the plugin build and the Docker image or package it came from, then test decoding of known studies in a staging instance before production. Confirm the rollback path, including how to restore the previous plugin and core pairing if a viewer stops rendering a study. Plan the change with the same approval gate used for the core and database plugins.

Orthanc plugins

Check the license against the deployment

The Orthanc core is GPLv3 or later, while the plugins named in the Orthanc Book licensing FAQ, such as the web viewer and PostgreSQL plugins, are AGPLv3 or later. Have legal or compliance review how the plugin is distributed and whether your deployment modifies or offers it to users over a network. Ask your counsel to confirm the license of the specific GDCM build you plan to ship, since that is not the same question as the core license.

Licensing FAQ

Keep decoding inside your infrastructure

Decoding happens in the Orthanc process, so JPEG 2000 frames are decompressed on the servers and workstations you control, not sent to an external service. Confirm this in your architecture review, including any cloud-hosted Orthanc or object storage backend, and document where decoded pixel data can be cached. This keeps the decoder change inside the same data residency position as the rest of the archive.

Keep viewer access behind the same controls

Enabling a decoder does not change who can open a study, but a newly working preview can expose images to users who previously saw only metadata. Keep RemoteAccessAllowed tied to AuthenticationEnabled with users defined in RegisteredUsers, and serve viewers over HTTPS through a reverse proxy. Test that each viewer enforces the same role rules as the API before you announce the fix to clinicians.

Security FAQ

Handle logs and test files as PHI

Decoding errors often write DICOM tags, patient identifiers or file paths into logs, and test studies copied from production carry the same PHI. Set a log retention and access rule before enabling verbose decoder logging, and redact or use synthetic or de-identified studies for test sets. Confirm with your privacy office where failed-decode samples are stored and who may download them.

How the fix differs by deployment environment

In a container deployment the plugin is part of the image you run, so the first question is which image and tag already include the decoder. Some teams add the plugin through a derived image built on top of the official one, while others mount plugin files into the container. Either way, a running container does not pick up a changed plugin on its own, so the change arrives through a new image or a restart of the container.

  • Image contents: Confirm from the Orthanc download page whether the Docker distribution you use already includes the GDCM plugin or whether you must build a derived image that adds it.
  • Pinned tags: Pin the exact image tag in staging and production manifests so both environments run the same Orthanc core and plugin build.
  • Restart behavior: Load the change by rolling out the container through your orchestrator, and confirm the new pod or container is the one serving requests.
  • Configuration mounts: Keep the Orthanc configuration file in version control and mount it the same way in both environments.
  • Registry access: Confirm that your build pipeline can pull the base image and that any private registry holds the exact tags you deploy.

Before sign-off, compare the image digest and the plugin list reported by the running server in staging and production.

Limits to confirm before you commit to GDCM

The GDCM plugin changes how Orthanc decodes compressed images, so its scope has to be confirmed before it goes into clinical use. The items below cover what the plugin decodes, which Orthanc release it must match, which viewers depend on it, what transcoding changes, who holds the license, and whether your test set represents your real modalities. Answer each one from the plugin documentation and from a test set drawn from your own archive.

Transfer syntaxes actually decoded

Do not assume that enabling the plugin covers every JPEG 2000 variant. Get the exact list of transfer syntaxes the plugin decodes from its documentation, and confirm whether lossless and lossy JPEG 2000, JPEG 2000 Part 2, and any other compressed syntaxes in your archive are on that list. Treat any syntax missing from the list as unsupported until a test study proves otherwise. Record the list in your change request so reviewers can compare it with what your modalities send.

Orthanc plugins

Compatibility with your Orthanc version

Decoder behavior depends on the Orthanc core and the plugin build you run together. Orthanc 1.13.0 was released on 2026-08-15 with a rewrite of DICOM parsing and transcoding, so a plugin tested on an earlier release may behave differently there. Confirm which plugin build matches your core version, and repeat the test set after every core upgrade before you move the change into production.

Orthanc NEWS file

Viewers that pass frames through the decoder

Not every viewer reads frames through the same code path. Identify which viewers in your deployment request decoded frames from Orthanc, which request the original transfer syntax, and whether any of them decode JPEG 2000 in the browser. Test each viewer with the same study, because a study that previews in one interface may still fail in another. Document the result per viewer.

Clinical content after transcoding

Transcoding changes how pixel data is encoded, and lossy compression changes the pixel values themselves. Ask the vendor or plugin documentation whether a transcoded output is lossless, and whether a lossy target is ever used by default. Confirm with your radiology and governance leads which outputs may enter the clinical record, and keep the original object alongside any converted copy so the encoding change is traceable.

License terms in your deployment

Orthanc core is licensed GPLv3 or later, while its plugins carry their own terms, and the GDCM plugin must be checked on its own. Ask your legal or procurement team to confirm the license of the exact build you deploy, what obligations apply if you modify or redistribute it, and whether any support contract changes those terms. Keep the license file and version with your deployment records for later audits.

Licensing FAQ

Coverage of your failing studies

A test set built only from the studies that triggered the complaint will miss the rest of your archive. Include samples from every modality and vendor that sends compressed images, plus studies with multiple frames, color, and unusual bit depths. Record which studies fail before and after the plugin, and treat any modality without a passing sample as an open risk rather than a verified fix.

Questions teams ask before fixing JPEG 2000 previews

How much effort does a JPEG 2000 preview fix take, and what drives it?

The effort depends on how many transfer syntaxes are affected, how many instances and studies need re-checking, how many viewers and client workstations rely on the server, and how much change control your organization requires. A single syntax on a test server with few studies is a small job. Several syntaxes across a production archive with multiple viewers, a formal change board and rollback requirements is a larger one. Ask for the scope to list each of these factors explicitly, because a quote that does not name them cannot be compared with another. Duration figures should come from the written scope, not from general estimates.

Can our internal team fix JPEG 2000 decoding without outside help?

Often yes, if the team has working knowledge of Orthanc configuration, Docker or Linux service management, DICOM transfer syntaxes and how the viewers in use request images. The work usually involves installing and enabling the GDCM plugin, checking which decoder handles each syntax, and testing previews in each viewer. Teams without that mix tend to lose time on decoding edge cases and on regressions in other viewers. Before deciding, check the Orthanc Book plugins page for the plugin list and confirm your staff can own the configuration after handover.

What do we need to provide for the work to start?

Plan to provide a set of sample studies that reproduce the failing previews, including one study for each affected transfer syntax. You will also need a staging Orthanc instance that matches production's version, database back end and plugin set, access to Orthanc and reverse proxy logs from the failing period, and a named contact who can approve a change window. Without a staging copy, every test runs against live data. Written scopes should list these inputs and state who supplies each one, so delays are visible early.

Does transcoding replace the original DICOM files?

Transcoding creates a new representation of an instance for a given request or transfer. It does not have to change the stored original, and whether it does depends on how your Orthanc instance and any transfer workflow are configured. Confirm this on staging before rollout: store a test instance, request it through the viewer and through a DICOM transfer, and check which copy is kept. Keeping originals unchanged matters for audit, clinical reproducibility and any downstream system that compares checksums. Put the answer in the written scope as an explicit requirement.

How do we check that previews work after the change?

Define a test matrix before the change. It should list each affected transfer syntax, each viewer your clinicians use, each browser on the supported list, and the expected result for each combination. Run the matrix on staging, then repeat a smaller set on production after the change window. Record which instances were tested, the Orthanc version and the plugin versions. Check the server logs for decoding errors during the test. A written pass or fail record gives clinical and compliance owners evidence they can review.

What should a written quote for this fix include?

A useful quote lists the in-scope syntaxes and viewers, the Orthanc and plugin versions involved, the environments covered (staging and production), the test matrix and who signs it off, the change window and rollback plan, the handover and documentation deliverables, and any post-change support period. It should also state what is excluded, such as viewer redesign or unrelated DICOM networking changes. Ask whether the quote is fixed scope with agreed deliverables. DeployOpen delivers most engagements against a written scope agreed before work starts, so ask for that document rather than a verbal estimate.

Who is responsible for the plugin after the fix is complete?

Responsibility should be written down before the work starts. Ask who will apply Orthanc and GDCM plugin updates, who monitors logs for decoding failures, who owns the staging copy, and who decides when a viewer change needs re-testing. Ongoing support, upgrades and continuous testing can be covered by a retainer if your team wants that help. Orthanc Team SRL also sells pre-paid dedicated support hours valid for 12 months, quoted on request, which is a separate option you can compare.

How DeployOpen scopes and delivers a decoding fix

DeployOpen approaches JPEG 2000 display problems in Orthanc as a scoped fix to your own deployment, not a generic install. We first establish which transfer syntaxes your modalities and viewers actually send, then build and test the GDCM plugin change inside your infrastructure, and hand over documentation your team can run.

How we scope

  • Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.
  • We inventory the transfer syntaxes your modalities, peers and viewers send, store and request in Orthanc.
  • The written scope names which viewers, DICOMweb clients and transcoding paths must display correctly after the change.

How we build

  • We install and configure the GDCM plugin alongside your current Orthanc version and decoding settings.
  • We test preview and decoding of each affected syntax in the viewers your clinicians use, with DCMTK fallback behavior checked.
  • We review the effect on transcoding, storage size and memory use before any change reaches production data.

How we hand over

  • You receive configuration files, a deployment record and a list of verified syntaxes and viewers.
  • Runbook steps cover restarts, plugin version pinning and what to check after each Orthanc upgrade.
  • We walk your engineers through the test cases so they can repeat them on future changes.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • A retainer can cover re-testing when Orthanc or the GDCM plugin is upgraded to a new release.
  • Ask for the support scope, response expectations and upgrade testing terms in the written quote.

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.