Compress Old Images

  • Currently i am doing this but it takes lot of time. Instead i want that i write some batch script or something that simply compress the already saved images and save the time of resending them again.

  • Hi,


    the batch script would to the same. If you can list each patientID you can do:


    dgate --modifystudy:patientid,,nop


    This would load and store each image and change it to the current compression


    or:


    dgate "--modifystudy:patientid,,compression J2"


    Which would compress each image to e.g. J2.


    Marcel

  • Hi Marcel


    Is this correct command line for dgate.


    dgate64.exe --modifystudy:1234,,compression J2


    As i get the following error:


    [PACS] Server command sent using DGATE -- option
    [PACS] *** Importconverter-1.0 error: compression
    [PACS] Deleting database entry for image: D:\PACS\Data\1234\1.2.826.0.1.3680043.2.135.736201.35719616.7.1472144619.0.18_0001_000001_14721465580000.dcm
    [PACS] Modified image: D:\PACS\Data\1234\1.2.826.0.1.3680043.2.135.736201.35719616.7.1472144619.0.18_0001_000001_14721466050001.dcm
    [PACS] Deleting file: D:\PACS\Data\1234\1.2.826.0.1.3680043.2.135.736201.35719616.7.1472144619.0.18_0001_000001_14721465580000.dcm

  • Hi


    A simple drag'n drop of your DICOM folder to the Conquest GUI also works. I did that a couple of years ago, took like aweek but worked like a charm.
    I would however use a 2nd Conquest instance/GUI for the task if you want to keep your archive online - it just has to use the same DICOM folder and database.

  • hi


    I am using the following command as before but today i am getting this error:[HPACS] ***Child: Unable to OpenFileMapping : 2 ('--modifystudy:A1234567-1). My command is as follow:-


    dgate64.exe '--modifystudy:A1234567-1,, compression j2'.


    Please guide..


    --HM

  • Hi Marcel


    I replace single quotes with the double quotes but still facing the error. Appended below is the server log.


    9/8/2017 12:38:25 PM [HPACS] set debug level from GUI
    9/8/2017 12:38:31 PM [HPACS] Connected by address: 0100007f
    9/8/2017 12:38:31 PM [HPACS] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'
    9/8/2017 12:38:31 PM [HPACS] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1"
    9/8/2017 12:38:31 PM [HPACS] 0000,0100 2 US CommandField 48
    9/8/2017 12:38:31 PM [HPACS] 0000,0110 2 US MessageID 1
    9/8/2017 12:38:31 PM [HPACS] 0000,0800 2 US DataSetType 257
    9/8/2017 12:38:31 PM [HPACS] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2"
    9/8/2017 12:38:31 PM [HPACS] 9999,0300 42 LO ConquestConsoleText "Server command sent using DGATE -- option"
    9/8/2017 12:38:31 PM [HPACS] 9999,0400 34 LO ConquestConsoleComma "modifystudy:A886-1,,compression J2"
    9/8/2017 12:38:31 PM [HPACS] Server command sent using DGATE -- option
    9/8/2017 12:38:31 PM [HPACS] Query On Image
    9/8/2017 12:38:31 PM [HPACS] Issue Query on Columns: DICOMImages.SOPInstanc, DICOMImages.ImageNumbe, DICOMImages.NumberOfFr, DICOMStudies.PatientID, DICOMStudies.StudyInsta,DICOMImages.ObjectFile,DICOMImages.DeviceName
    9/8/2017 12:38:31 PM [HPACS] Values: DICOMStudies.PatientID = 'A886-1' and DICOMSeries.ViewName = DICOMStudies.ViewName and DICOMImages.IMAGETYPE = DICOMSeries.IMAGETYPE
    9/8/2017 12:38:31 PM [HPACS] Tables: DICOMImages, DICOMSeries, DICOMStudies
    9/8/2017 12:38:31 PM [HPACS] ***Error: Unknown column 'DICOMStudies.ViewName' in 'where clause'


    This says that there is an uncolumn ViewName. Does the column is missing or what??


    --HM

  • Yes there is a column ViewName { 0x0008, 0x2127, "ViewName", 128, SQL_C_CHAR, DT_UI }.


    Database is already regenerated without any error and i later do so. But still i am facing the error until and unless i remove all the columns i added in the database and restore the original database.


    Will you please guide me how can i run the modifystudy command with my custom database.


    --HM

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!