Converting to .jpg format
Hi folks,
FedroaCore2 1) Which simple tool shall I use to convert/save/print files of following format to .jpg .txt .doc 2) After converson, if the original file has several pages can the output file be a single .jpg file instead separate .jpg files. 3) Can a webpage be printed/saved as .jpg format TIA B.R. satimis |
GIMP might work, but that is just a guess.
|
Hi tormented_one,
Tks for your advice. Yes GIMP can do the job, but not suitable my application. What I'm trying to do is to attach the .jpg files to an email/webmail. The receipiant can read them directly upon opening the email/webmail without further clicking the attached files to read. B.R. satimis |
There's a util called gozer than can render text in jpg format, but I don't know about doc or pdf. You'd probably be able to convert the doc to txt using some sort of filter, but the pdf...no idea.
|
ImageMagick?
Have you tried the convert utility from ImageMagick?
I've had success converting PDF to jpg with it. http://www.imagemagick.org/www/convert.html Not sure about .txt & .doc format For .doc format you might find a linux utility that converts doc to pdf then you can use `convert` to go from there to jpg. You may want look for a windows batch file converter and run it using wine. I use wine to convert m4p files to m4a files with perl on linux. |
Hi Komakino,
Tks for your advice. Quote:
http://www.linuxbrit.co.uk/gozer/ I never use it. B.R. satimis |
Re: ImageMagick?
Quote:
B.R. satimis |
Are you sure that GIMP is not suitable? I haven't tried it, but I think you can use it from CLI.
http://www.gimp.org/tutorials/Basic_Batch/ |
Hi enemorales,
Tks for your URL Quote:
I'm not knowledgeable on command line of GIMP. Now after saving the sample script (A simple example) listed on http://www.gimp.org/tutorials/Basic_Batch/ to ~/.gimp-2.2/scripts/XYZ.scm What shall I do with following command line gimp -i -b '(simple-unsharp-mask "foo.png" 5.0 0.5 0)' '(gimp-quit 0)' If the file to be converted is a .txt or .pdf file namely AAA.txt/AAA.pdf and the output file is BBB.png. What I shall enter. Please advise. TIA B.R. satimis |
Try the tool called enscript . It can convert text files to ps or jpg type. It did convert a doc file for me but the output was garbage. Maybe that could be fixed by saving the doc file as text first.
Also, the command is not what you may expect as the output file is typed before the input file name. For example: Code:
enscript -p test.jpg test.txt |
Why on earth do you want to make a text into
a jpg? (ASCII)Text is (unless you consider (g)zip/bzip2) the most efficient (in terms of size and this cost of transport) format available? Cheers, Tink |
Hi Tinkster,
Quote:
There are still some funny folks on this globe, knowing nothing to install fonts. They are still running M$Win/ME/98, knowing nothing about "update". They only know browsing Internet, sending emails, text editing, etc. They rely on other people to fix the PC for them to use. They even don't know how to get Acrobat Reader from Internet, free of Charge. If you send them emails with attachments other than .jpg/.png format they don't know how to open/read the same. If the attachments being on .htm/.html format and they don't have the same fonts installed they can't read the attachments. They totally rely on the senders assisting them to read the attachments. For such a reason and in my consideration, the simplest way is to send them pictures in .jpg/.png format. Our folks won't have this problem. B.R. satimis |
Hi homey,
Tks for your advice. Quote:
# yum install enscript installing the package. It worked nicely with English .txt file. However it did not work on Chinese .txt $ enscript -p testfile.jpg testfile_cn.txt [ 1 pages * 1 copy ] left in hope_lee_data-050221_spare_cn.jpg 21 non-printable characters $ enscript -p testfile.ps testfile_cn.txt same result Any suggestion? Which flag I have to raise/up. TIA B.R. satimis |
That's definitely new turf for me so I can only guess.
This is from: man enscript Code:
-E[lang], --pretty-print[=lang] |
Just wanted to chime in here. I am in the process of trying to do the same thing (.txt -> .jpg) for upload onto my PSP. I have a bunch of ebooks, and the allure of that large screen is too much to resist.
As such, convert has been working very very well for me. I still have a few questions about specifying output size, etc., but the files are quite usable and clear. Might wanna explore that a little more... |
All times are GMT -5. The time now is 11:41 AM. |