# HG changeset patch
# User Alain Mazy <am@osimis.io>
# Date 1499182579 0
# Node ID e371519d4ac924c6515ff5bc1b223c0dfec84e9d
# Parent  9d87f308d35c274deeae46de8b92db68c00dde17
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)

diff -r 9d87f308d35c -r e371519d4ac9 Resources/Samples/Lua/AutomatedJpeg2kCompression.lua
--- 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