diff OrthancServer/Sources/ServerContext.cpp @ 5148:2df546a76e17

If specifying 'Transcode' option to /modify or /anonymize, this value will take over the 'IngestTranscoding' global configuration
author Alain Mazy <am@osimis.io>
date Fri, 27 Jan 2023 12:56:55 +0100
parents 19ccae2e0371
children 05112ff6ba22
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp	Fri Jan 27 11:49:28 2023 +0100
+++ b/OrthancServer/Sources/ServerContext.cpp	Fri Jan 27 12:56:55 2023 +0100
@@ -762,7 +762,7 @@
                                                               bool isReconstruct)
   {
 
-    if (!isIngestTranscoding_)
+    if (!isIngestTranscoding_ || dicom->SkipIngestTranscoding())
     {
       // No automated transcoding. This was the only path in Orthanc <= 1.6.1.
       return StoreAfterTranscoding(resultPublicId, *dicom, mode, isReconstruct);