Mercurial > hg > orthanc
diff Resources/Samples/Lua/AutomatedJpeg2kCompression.lua @ 2294:e371519d4ac9
added -U option to gdcmconv to prevent gdcmconv to mess up the files. Without that option, we have seen the SpecificCharSet tag becoming invalid !!! (seen on the VIX samples)
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 04 Jul 2017 15:36:19 +0000 |
parents | 1c9e99d2bfd2 |
children |
line wrap: on
line diff
--- a/Resources/Samples/Lua/AutomatedJpeg2kCompression.lua Wed Jun 28 17:19:30 2017 +0200 +++ b/Resources/Samples/Lua/AutomatedJpeg2kCompression.lua Tue Jul 04 15:36:19 2017 +0000 @@ -16,7 +16,7 @@ -- Compress to JPEG2000 using gdcm local compressed = instanceId .. '-compressed.dcm' - os.execute('gdcmconv --j2k ' .. uncompressed .. ' ' .. compressed) + os.execute('gdcmconv -U --j2k ' .. uncompressed .. ' ' .. compressed) -- Generate a new SOPInstanceUID for the JPEG2000 file, as -- gdcmconv does not do this by itself