Announcement

Collapse
No announcement yet.

Multi Page Tif file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multi Page Tif file

    Does anyone have any pointers on creating a multi-page tiff file with Mirth?

    Use Case:
    I have a Dicom channel that is receiving images. Some of the images being sent are scanned paperwork. I would like to convert the paperwork images into a single multi-page tiff file that I can then hand off to my fax server. I have everything working creating a single tiff file per image. I would prefer to put all paperwork images for a study into 1 tiff file.

    Any help that can be provided would be greatly appreciated.
    Last edited by TSmithTRA; 08-06-2010, 12:36 PM. Reason: grammer
    Tom Smith
    IT Director
    Triad Radiology Associates

  • #2
    I haven't had any experience with attempting such a feat but I would check out the 2 libraries we use for dicom/image processing:

    dcm4che
    imagej

    Both of these libraries are up to date in 2.0 but are a couple releases behind in 1.8.2. You may want to try 2.0 for this one. You may also consider creating a custom java library if js isn't sufficient.

    -Brad

    Comment


    • #3
      I am not sure the DCM4CHE would work in this case. Each image is treated as its own message and they do not necessarily come in order. I am currently using the FileUtil.write function to write the file out. When I change append to true it does seem to add the additional images to the file (file size is almost 16MB for 4 images as opposed to 1MB for each image); however my image viewers only report there is 1 image in the file.

      I will investigate the DCM4CHE forums to see if the conversion utility can specify a multi image tiff. That may be where the problem lies.

      Thank you for your response.

      Tom
      Tom Smith
      IT Director
      Triad Radiology Associates

      Comment


      • #4
        Any updates on this thread?

        I was using different library called JAI core and JAI Media x library. But it was not running successfully through Mirth. I face issues when executing via mirth. But working fine in normal eclipse JAVA.

        Mirth Interface Engineer
        AWS DevOps

        Comment


        • #5
          I often shell out to the OS (Linux) for this kind of stuff, it's a one liner in ghostscript assuming you have the TIF files named uniquely in a directory and can reference that directory / queue / message from mirth via some scripting using mktemp and mktemp -d.
          Mirth 3.8.0 / PostgreSQL 11 / Ubuntu 18.04
          Diridium Technologies, Inc.
          https://diridium.com

          Comment


          • #6
            ghostscript?
            Last edited by siddharth; 08-29-2017, 04:16 AM. Reason: foo
            HL7v2.7 Certified Control Specialist!

            Comment


            • #7
              ok, maybe tiffcp in the llibtiff-tools package in Ubuntu (in my case) is even easier. man(ual) page at http://www.libtiff.org/man/tiffcp.1.html

              I am sure Mirth purists would swizzle something in java, I'm just a seasoned unix guy that can write stuff a lot faster with a loop or two and smart parameter passing in bash scripts to and from Mirth. It's just another thing in the toolbox.
              Mirth 3.8.0 / PostgreSQL 11 / Ubuntu 18.04
              Diridium Technologies, Inc.
              https://diridium.com

              Comment

              Working...
              X