Compression base on modality

Hi All,
We have issue viewing angiography study ( XA modality ) using orthanc. Due to large number of series in this study, we would like to compress this study. We also have other modality like CT and MRI. Our aim is to compress angiography study but not compress other study like CT and MRI.

Is the any lua script to do this job?
(we deploy orthanc using docker orthanc/osimis )

Thank you in advance.

Regards,
Adly

Hi Adly,

You can easily write that kind of lua script.
Here are 2 samples you could get some inspiration from:
https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Samples/Lua/AutomatedJpeg2kCompression.lua
https://hg.orthanc-server.com/orthanc/file/tip/OrthancServer/Resources/Samples/Lua/AutoroutingConditional.lua

HTH,