Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Linux and Unix
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router safe mode slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Convert .jpg to .pcl

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
stufine's Avatar
Senior Member with 365 posts.
 
Join Date: Jul 2001
Location: Cincinnati, Ohio Go Bengals!!!!
24-Apr-2002, 04:31 PM #1
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.
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
25-Apr-2002, 11:41 AM #2
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.
stufine's Avatar
Senior Member with 365 posts.
 
Join Date: Jul 2001
Location: Cincinnati, Ohio Go Bengals!!!!
30-Apr-2002, 11:16 AM #3
I am not ignoring your response.

I am still trying to try your suggestions

Thanks!!
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
03-May-2002, 01:38 AM #4
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.
stufine's Avatar
Senior Member with 365 posts.
 
Join Date: Jul 2001
Location: Cincinnati, Ohio Go Bengals!!!!
03-May-2002, 08:09 AM #5
That is exactly what I am trying to do. I will try your last response and let you know!!!

Thanks
stufine's Avatar
Senior Member with 365 posts.
 
Join Date: Jul 2001
Location: Cincinnati, Ohio Go Bengals!!!!
07-May-2002, 09:27 AM #6
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.
stufine's Avatar
Senior Member with 365 posts.
 
Join Date: Jul 2001
Location: Cincinnati, Ohio Go Bengals!!!!
07-May-2002, 04:12 PM #7
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.
codejockey's Avatar
Senior Member with 1,410 posts.
 
Join Date: Feb 2002
08-May-2002, 02:01 AM #8
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.
Closed Thread Bookmark and Share

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.

Thread Tools


You Are Using:
Server ID
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.
Powered by Cermak Technologies, Inc.