web stats
Multi Page Tif file - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-06-2010, 12:35 PM
TSmithTRA TSmithTRA is offline
OBX.2 Kenobi
 
Join Date: Nov 2009
Location: Winston-Salem, NC
Posts: 79
TSmithTRA is on a distinguished road
Default 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.
__________________
Tom Smith
IT Director
Triad Radiology Associates

Last edited by TSmithTRA; 08-06-2010 at 12:36 PM. Reason: grammer
Reply With Quote
  #2  
Old 08-06-2010, 02:13 PM
bradd bradd is offline
Mirth Employee
 
Join Date: May 2009
Location: Irvine, CA
Posts: 133
bradd is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 08-09-2010, 07:06 AM
TSmithTRA TSmithTRA is offline
OBX.2 Kenobi
 
Join Date: Nov 2009
Location: Winston-Salem, NC
Posts: 79
TSmithTRA is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 08-27-2017, 09:25 PM
vibinChander vibinChander is offline
OBX.2 Kenobi
 
Join Date: Jul 2015
Location: Chennai
Posts: 74
vibinChander is on a distinguished road
Send a message via Skype™ to vibinChander
Default 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
Reply With Quote
  #5  
Old 08-28-2017, 09:07 AM
pacmano pacmano is offline
OBX.2 Kenobi
 
Join Date: Oct 2009
Location: Texas
Posts: 86
pacmano is on a distinguished road
Default

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
Reply With Quote
  #6  
Old 08-29-2017, 04:16 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 832
siddharth is on a distinguished road
Default

ghostscript?
__________________
HL7v2.7 Certified Control Specialist!

Last edited by siddharth; 08-29-2017 at 04:16 AM. Reason: foo
Reply With Quote
  #7  
Old 08-29-2017, 06:46 AM
pacmano pacmano is offline
OBX.2 Kenobi
 
Join Date: Oct 2009
Location: Texas
Posts: 86
pacmano is on a distinguished road
Default

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
Reply With Quote
Reply

Tags
convert, dicom, multi-page, tiff

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation