Page 1 of 1

EML/MSG to TIFF

Posted: 2017-03-03T02:12:30-07:00
by hansel
I have this workflow in which I need to convert an incoming email message (EML format) into a TIFF image. The program which uses ImageMagick as a image converter is calling a batch script (.BAT). See below for a part of the code:

Code: Select all

[...]
ECHO Calling ImageToTiff...
Rem bin\ImageToTiff.exe FilesInput\%FileInput% FilesResult\%FileOutput% 0 CompressionIgnored %Color% %Resolution% >> %Output%
bin\ImageMagick\ImageToTiff.exe %1 %2 %3 %4 %5 %6 %ResetResolution% %JpegQuality% %ColorUpsample% %MindxResolution% %MaxPrintSize% %Splittiff% %7
if errorlevel 1 goto ErrorImageToTiff
ECHO ImageToTiff ok.
Goto End
[...]
The creation of the TIFF image has no issues. I do have an issue with some of the html in the original e-mail message. Some lines are wider than the page it is converted to. The result is a TIFF image where the specific lines run out of page. I could force to print on a bigger scaled paper size but that would make the TIFF hard to read. You would have to zoom in to make it readable.

Is there a way to make use of a StyleSheet (CSS file) in the command line of ImageToTiff.exe in a way it reads the styles and listens to it?

Re: EML/MSG to TIFF

Posted: 2017-03-03T08:41:20-07:00
by snibgo
Where did ImageToTiff.exe come from? I don't think that is part of ImageMagick.