On Mon, Jun 27, 2016 at 10:30:08PM +0000, Debian Bug Tracking System wrote:

> please compile and provide
>       Samples/Tools/RecoverCompressedFile.cpp
> as
>       /usr/sbin/orthanc-recover_compressed_file
...
> If /usr/sbin/orthanc-recover_compressed_file were available I
> could provide helper scripts upgrading the database.

For the time being attached find a shell script which makes
using /usr/bin/OrthancCompressedFile a lot more convenient
(given exiftool and dicom3tools are installed).

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346
#!/bin/bash

DCMFILE="$1"
LOG=${DCMFILE}.log

OrthancRecoverCompressedFile ${DCMFILE} ${DCMFILE}.uncompressed &> ${LOG}
RESULT=$?

if [ $RESULT -ne 0 ] ; then
        echo "cannot uncompress ${DCMFILE}"
        echo "--- file" &>> ${LOG}
        file ${DCMFILE} &>> ${LOG}
        echo "--- dciodvfy" &>> ${LOG}
        dciodvfy -filename ${DCMFILE} &>> ${LOG}
        echo "--- dcentvfy" &>> ${LOG}
        dcentvfy -veryverbose ${DCMFILE} &>> ${LOG}
        echo "--- exiftool" &>> ${LOG}
        exiftool ${DCMFILE} &>> ${LOG}
        echo 
"------------------------------------------------------------------"
        less ${LOG}
fi

exit ${RESULT}

Reply via email to