Orthanc convert YBR to RGB but does not change metadata

Hi @alireza

Yes, I think this should be the default setting since:

  • this avoids transcoding server-side (less server CPU usage),
  • it transfers compressed data (less network bandwidth)

Best regards,

Alain.

1 Like

Hi @alainmazy

How can we make this change in version OHIF v2?

No idea, sorry !

BR,

Alain Mazy

Hi @alireza ,
How can we make these changes in the OHIF v2 configuration?

dataSources: [
{

acceptHeader: [ ‘multipart/related; type=application/octet-stream; transfer-syntax=*’]
},
}],

For anyone using OHIF v2 and want to try this fix, you should add the accept header inside beforeSend in platform/viewer/src/config.js

inside

cornerstoneWADOImageLoader.configure({
    beforeSend: function(xhr) {
      const headers = OHIF.DICOMWeb.getAuthorizationHeader();

      if (headers.Authorization) {
        xhr.setRequestHeader('Authorization', headers.Authorization);
      }
    },
    errorInterceptor: error => {
      // const { appConfig = {} } = AppContext;

      if (typeof appConfig.httpErrorHandler === 'function') {
        appConfig.httpErrorHandler(error);
      }
    },
  });