public static string AddCompressTask(List <Image> ImageList, string sessionId)
        {
            foreach (Image image in ImageList)
            {
                var ret = MiniPacsDllImporter.dicom2jpg("2.1860.2003123013209.62.2.1.1", @"E:\Images\20190428\ECOM000008913\2.1860.2003123013209.62.2.1.1.dcm",
                                                        @"D:\Test\2.1860.2003123013209.62.2.1.1_1.jpg", 200, 200);
            }

            //Thread myNewThread = new Thread(() => DoCompress(ImageList, sessionId));
            //myNewThread.Start();

            return("");
        }
        public static CompressResult ProcessCompress(CompressParam param)
        {
            int result = 1;

            try
            {
                result = MiniPacsDllImporter.dicom2jpg(param.sopInstanceUID, param.dicomFileName, param.outputFileName + "_1.jtf",
                                                       1200, 1200);
            }
            catch (Exception ex)
            {
                //GXLogManager.WriteLog(GXLogModule.JP2ManagementServer_CompressWorker, GXLogLevel.Error, GXLogCode.DEFAULT, ex);
            }

            return((result == 1) ? CompressResult.SUCCESS : CompressResult.FAIL);
        }