 | Senior Member with 365 posts. | | Join Date: Jul 2001 Location: Cincinnati, Ohio Go Bengals!!!! | | Convert .jpg to .pcl Is there any Unix programs out there that will convert a .jpg to a pcl.
The reason I am wanting to do this is so I can print the picture from a command line and send it to the printer. | | Senior Member with 1,410 posts. | | | | Assuming that the conversion itself can be interactive (i.e., not done from the command line), I think Electric Eyes may do what you want. I was able to read a .jpg file and save it as a .pcl file, although I could not print the .pcl file properly (may be my printer or the way I've configured lp spooling, though). The .jpg file printed fine from within Electric Eyes, however, which suggests that the conversion is OK. Electric Eyes is included in many Linux distributions.
If you need the conversion itself to be done from the command line, you might research what's available in the gimp, since it has a batch language that can be used to run scripts, etc.
Hope this helps.
__________________ The slowest component still sits at the keyboard. | | Senior Member with 365 posts. | | Join Date: Jul 2001 Location: Cincinnati, Ohio Go Bengals!!!! | | I am not ignoring your response.
I am still trying to try your suggestions
Thanks!! | | Senior Member with 1,410 posts. | | | | Just in case I misunderstood your post: it's perfectly possible to print graphics files (in many different formats) from the command line on a laser (or inkjet or dot-matrix) printer, using the lp subsystem (lpr or lprng). To do this, you will need what's called a "magic filter" -- and the one I recommend is (oddly enough) magicfilter (there are others). So, for example, if you wish to print a jpeg file from the command line, you would use a command such as:
lpr -P laser image.jpg
and your laser printer would happily print the jpeg file (assuming you had installed and configured lp spooling correctly and were using a magic filter). Let me know if this is what you intended; if so, forget my previous post, as I now understand what you really have in mind.
Sorry for being dense, and hope this helps.
__________________ The slowest component still sits at the keyboard. | | Senior Member with 365 posts. | | Join Date: Jul 2001 Location: Cincinnati, Ohio Go Bengals!!!! | | That is exactly what I am trying to do. I will try your last response and let you know!!!
Thanks | | Senior Member with 365 posts. | | Join Date: Jul 2001 Location: Cincinnati, Ohio Go Bengals!!!! | | I tried magicfilter and could never get it installed. It was wanting too many different things that SCO doesn't come with. I downloaded tons of extra tools but it still won't compile. Still looking though and will let you know what I find out. | | Senior Member with 365 posts. | | Join Date: Jul 2001 Location: Cincinnati, Ohio Go Bengals!!!! | | WOO HOO!!!! I am almost there. I installed XV and it works great.
Now I just need to figure out how to get it to print from the command line. | | Senior Member with 1,410 posts. | | | | Great work! Glad to hear that you are making progress. In addition, you provided a critical piece of information when you mentioned SCO as your Unix version. Now it's been awhile since I used SCO (Unix, Xenix) but my recollection is that SCO is based on AT&T Unix System V.X (most recently, V.4, I think). Anyway, System V Unixes typically use lp as the command to print documents; print management is done via commands such as lpadmin and lpstat. The lp spooling system relies on a series of directories (/var/spool/lp and below, I believe) to control the mapping of logical printers to physical printers (i.e., the same physical printer can have more than one logical mapping -- imagine a laser printer in portrait and landscape mode, for example). You might begin at the lp man page (try man lp from the command line) and see if that's helpful.
There's no reason why magicfilter couldn't work in a System V-based system; at first blush, I'd expect it would be invoked from the interface file for each logical printer defined to the system.
Hope this helps.
__________________ The slowest component still sits at the keyboard. |  THIS THREAD HAS EXPIRED.
Are you having the same problem?
We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.
|
Smart Search
| Find your solution! | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |  WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
| You Are Using: |
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:07 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd. | |
|