Tux

...making Linux just a little more fun!

Eml to tiff converter

Smile Maker [britto_can at yahoo.com]


Fri, 1 Aug 2008 04:44:58 -0700 (PDT)

Folks:

Do we have any tool in linux which converts eml files to tiff images format

-- 
Britto


Top    Back


Ben Okopnik [ben at linuxgazette.net]


Fri, 1 Aug 2008 08:57:16 -0400

On Fri, Aug 01, 2008 at 04:44:58AM -0700, Smile Maker wrote:

>    Folks:                                                                     
>                                                                               
>     Do we have any tool in linux which converts eml files to tiff images      
>    format                                                                     

Sorry, your question makes no sense. '.eml' files are (at least in Wind0ws, which is the only place I know of that tags files with this extension) are email files - i.e., text. You could convert text to an image - i.e., you could create an image of a printed page - but I don't think that that's what you're asking. What are you asking?

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *


Top    Back


Kat Tanaka Okopnik [kat at linuxgazette.net]


Fri, 1 Aug 2008 07:43:17 -0700

On Fri, Aug 01, 2008 at 04:44:58AM -0700, Smile Maker wrote:

>    Folks:                                                                     
>                                                                               
>     Do we have any tool in linux which converts eml files to tiff images      
>    format                                                                     
>                                                                               
>    --                                                                         
>    Britto                                                                     

...except that the original version was sent as .html mail.

Please, Britto, could you send your posts to TAG as PLAIN TEXT?

-- 
Kat Tanaka Okopnik
Linux Gazette Mailbag Editor
[email protected]


Top    Back


Kat Tanaka Okopnik [kat at linuxgazette.net]


Mon, 4 Aug 2008 11:03:52 -0700

On Fri, Aug 01, 2008 at 08:06:51AM -0700, Smile Maker wrote:

> 
> --- On Fri, 8/1/08, Kat Tanaka Okopnik <[email protected]> wrote:
> 
> > On Fri, Aug 01, 2008 at 04:44:58AM -0700, Smile Maker wrote:
> > >    Folks:                                             
> >                        
> > >     Do we have any tool in linux which converts eml
> > files to tiff images      
> > >    format                                             
> > 
> > ...except that the original version was sent as .html mail.
> > 
> > Please, Britto, could you send your posts to TAG as PLAIN
> > TEXT?
> Thanks Kat.
> 
> Even if it is possible to convert HTML to any image format is also Ok.
> But there should be some command line option there, so that I can do the same for more files through the script
> 
> BTW,my posts will be in plain test from now on :)

Britto -

Thanks for changing over to plain text, it's much appreciated. Now, if you stop top-posting (putting your new text at the top of all of the old content) and start interleaving your text (putting the information in between (just below) any relevant older text and cutting out the non-relevant parts, you'll be doing the whole 9 yards and on my "oh, it's nice to see a post from" list. ;)

I've re-added TAG to the recipients list, because you'd sent this message just to me.

I think I finally understand your initial question. You want to take something which is an .html file, and turn it into an image?

-- 
Kat Tanaka Okopnik
Linux Gazette Mailbag Editor
[email protected]


Top    Back


Raj Shekhar [rajlist2 at rajshekhar.net]


Fri, 08 Aug 2008 08:12:51 +0530

in infinite wisdom Kat Tanaka Okopnik spoke thus On 08/04/2008 11:33 PM:

> On Fri, Aug 01, 2008 at 08:06:51AM -0700, Smile Maker wrote:
>> --- On Fri, 8/1/08, Kat Tanaka Okopnik <[email protected]> wrote:
>>
>> Even if it is possible to convert HTML to any image format is also Ok.
>> But there should be some command line option there, so that I can do the same for more files through the script
>>
>> BTW,my posts will be in plain test from now on :)
> 
> I think I finally understand your initial question. You want to take
> something which is an .html file, and turn it into an image?

Yes, you can take a text file and convert it into an image. Please put your hand together for the swiss army knife for image manipulation - Imagemagick.

You can use the convert command (part of imagemagick package) to do this. For example, I want to convert the file mysig.txt into an image. Here is how to do it

convert label:@mysig.txt ~/dump/mysig.png

For more tips on how to control the colors, font etc., check out the excellent tutorial at http://www.imagemagick.org/Usage/text/

-- 
raj shekhar
facts: http://rajshekhar.net
opinions: http://rajshekhar.net/blog
I've never made anyone's life easier and you know it!


Top    Back


Thomas Adam [thomas.adam22 at gmail.com]


Fri, 8 Aug 2008 06:27:10 +0100

On Fri, 08 Aug 2008 08:12:51 +0530 Raj Shekhar <[email protected]> wrote:

> in infinite wisdom Kat Tanaka Okopnik spoke thus  On 08/04/2008 11:33
> > I think I finally understand your initial question. You want to
> > take something which is an .html file, and turn it into an image?
> 
> Yes, you can take a text file and convert it into an image.  Please

But a text file is not -HTML-, and you can't use imagemagick to do that -- so it requires a little more thought.

-- Thomas Adam

-- 
"It was the cruelest game I've ever played and it's played inside my
head." -- "Hush The Warmth", Gorky's Zygotic Mynci.


Top    Back


Raj Shekhar [rajlist2 at rajshekhar.net]


Fri, 08 Aug 2008 17:19:03 +0530

in infinite wisdom Thomas Adam spoke thus On 08/08/2008 10:57 AM:

> On Fri, 08 Aug 2008 08:12:51 +0530
> Raj Shekhar <[email protected]> wrote:
> 
>> in infinite wisdom Kat Tanaka Okopnik spoke thus  On 08/04/2008 11:33
>>> I think I finally understand your initial question. You want to
>>> take something which is an .html file, and turn it into an image?
>> Yes, you can take a text file and convert it into an image.  Please
> 
> But a text file is not -HTML-, and you can't use imagemagick to do that
> -- so it requires a little more thought.
> 

From what I know, eml files are plain txt files. My snipping was wrong.

-- 
raj shekhar
facts: http://rajshekhar.net
opinions: http://rajshekhar.net/blog
I've never made anyone's life easier and you know it!


Top    Back


Deividson Okopnik [deivid.okop at gmail.com]


Fri, 8 Aug 2008 09:34:35 -0300

>>
>> But a text file is not -HTML-, and you can't use imagemagick to do that
>> -- so it requires a little more thought.
>>
>
>  From what I know, eml files are plain txt files.  My snipping was wrong.
>

well if its plain HTML, you can do save as - plain text file on Firefox to get a .txt file, then use the command line above... if nothing else helps, ctrl+c/ctrl+v if your friend.


Top    Back


Ben Okopnik [ben at linuxgazette.net]


Fri, 8 Aug 2008 12:08:42 -0400

On Fri, Aug 08, 2008 at 06:27:10AM +0100, Thomas Adam wrote:

> On Fri, 08 Aug 2008 08:12:51 +0530
> Raj Shekhar <[email protected]> wrote:
> 
> > in infinite wisdom Kat Tanaka Okopnik spoke thus  On 08/04/2008 11:33
> > > I think I finally understand your initial question. You want to
> > > take something which is an .html file, and turn it into an image?
> > 
> > Yes, you can take a text file and convert it into an image.  Please
> 
> But a text file is not -HTML-, and you can't use imagemagick to do that
> -- so it requires a little more thought.

You could always use Netscape/Mozilla's "Save" dialog to save the page as a PostScript file and convert that to an image (assuming that you don't consider a PS file to be an image in the first place.) You used to be able to script that kind of thing, something like this:

#!/bin/bash
 
$out=${1%html}ps
mozilla -remote "OpenURL(file://`pwd`/$1)"
mozilla -remote "saveAs($out,PostScript)"
sleep 1
convert $out ${out%ps}png

Alas, no longer. Mozilla/Firefox/etc. decided, in their [inf|et]ernal wisdom, that the '-remote' command needs to be gutted - and they have. Which makes the whole kit'n'kaboodle of them much less useful.

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *


Top    Back


Ben Okopnik [ben at linuxgazette.net]


Fri, 8 Aug 2008 12:41:14 -0400

On Fri, Aug 08, 2008 at 08:12:51AM +0530, Raj Shekhar wrote:

> 
> Yes, you can take a text file and convert it into an image.  Please put 
> your hand together for the swiss army knife for image manipulation - 
> Imagemagick.
> 
> You can use the convert command (part of imagemagick package) to do 
> this.  For example, I want to convert the file mysig.txt into an image. 
>   Here is how to do it
> 
> ``
> convert label:@mysig.txt ~/dump/mysig.png
> ''
> 
> For more tips on how to control the colors, font etc., check out the 
> excellent tutorial at http://www.imagemagick.org/Usage/text/

Nice tip, Raj! I've been doing some crazily-complicated version of that for ages (via a shell script, true, but I had to do a huge amount of wrestling with it initially to get it to do the right thing.) Good to know that there's a simple way to do this.

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *


Top    Back


Britto I [britto_can at yahoo.com]


Thu, 14 Aug 2008 00:12:05 -0700 (PDT)

Since images are also there in eml files,

I converted into html format first and then to tiff format using some tools.

-- 
Britto


Top    Back