export jpeg to folder

  • All I get is an empty folder. Any ideas as to what I have wrong here?



    Exportconverters = 2
    ExportConverter0 = "mkdcmdir.bat %V0008,0050"
    ExportConverter1 = "dcmj2pnm.exe +oj +Wm --scale-x-size 600 %f C:\retinal\%V0008,0050\%b.jpg,//0"


    Mike

  • Hi,


    They are asynchroneous, put them one line. Do not use quotes I think:


    Code
    ExportConverter0 = mkdcmdir.bat %V0008,0050; dcmj2pnm.exe +oj +Wm --scale-x-size 600 %f C:\retinal\%V0008,0050\%b.jpg,//0


    Marcel

  • Still empty. File name length it's trying to use is kind of evil too.


    Thanks!



    [CONQUESTSRV1] UPACS THREAD 44: STARTED AT: Fri Nov 14 16:36:19 2014
    [CONQUESTSRV1] Calling Application Title : "Compass "
    [CONQUESTSRV1] Called Application Title : "destination "
    [CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 1048576
    [CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.1" 1
    [CONQUESTSRV1] ***Truncated AccessionN from 20 to 16 chars in file: 000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000001_1416004579004d.v2
    [CONQUESTSRV1] Written file: C:\users\administrator\documents\dicomserver1414\data\000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000001_1416004579004d.v2
    [CONQUESTSRV1] ***Truncated AccessionN from 20 to 16 chars in file: 000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000003_1416004579004e.v2
    [CONQUESTSRV1] Written file: C:\users\administrator\documents\dicomserver1414\data\000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000003_1416004579004e.v2
    [CONQUESTSRV1] ***Truncated AccessionN from 20 to 16 chars in file: 000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000002_1416004579004f.v2
    [CONQUESTSRV1] Written file: C:\users\administrator\documents\dicomserver1414\data\000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000002_1416004579004f.v2
    [CONQUESTSRV1] UPACS THREAD 44: ENDED AT: Fri Nov 14 16:36:19 2014
    [CONQUESTSRV1] UPACS THREAD 44: TOTAL RUNNING TIME: 0 SECONDS
    [CONQUESTSRV1] Exportconverter0.0 executes: mkdcmdir.bat CDIC-598-052914-2353
    [CONQUESTSRV1] Exportconverter0.1 executes: dcmj2pnm.exe +oj +Wm --scale-x-size 600 C:\users\administrator\documents\dicomserver1414\data\000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000001_1416004579004d.v2 C:\retinal\CDIC-598-052914-2353\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000001_1416004579004d.jpg,//00"
    [CONQUESTSRV1] Exportconverter0.0 executes: mkdcmdir.bat CDIC-598-052914-2353
    [CONQUESTSRV1] Exportconverter0.1 executes: dcmj2pnm.exe +oj +Wm --scale-x-size 600 C:\users\administrator\documents\dicomserver1414\data\000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000003_1416004579004e.v2 C:\retinal\CDIC-598-052914-2353\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000003_1416004579004e.jpg,//00"
    [CONQUESTSRV1] Exportconverter0.0 executes: mkdcmdir.bat CDIC-598-052914-2353
    [CONQUESTSRV1] Exportconverter0.1 executes: dcmj2pnm.exe +oj +Wm --scale-x-size 600 C:\users\administrator\documents\dicomserver1414\data\000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000002_1416004579004f.v2 C:\retinal\CDIC-598-052914-2353\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000002_1416004579004f.jpg,//00"

  • Hi,


    open a command prompt and try to get the conversion working:


    dcmj2pnm.exe +oj +Wm --scale-x-size 600 C:\users\administrator\documents\dicomserver1414\data\000-00-0000\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000002_1416004579004f.v2 C:\retinal\CDIC-598-052914-2353\1.2.840.113619.2.203.4.2147483647.1401384237.432484.3_0320_000002_1416004579004f.jpg,//00"


    What I see:


    It may be useful to put quotes around %f, there is an end quote that looks wrong and the //0 looks weird.


    Marcel

Participate now!

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