Re: [Image-SIG] Converting to zebra (ZPL) format

2006-09-19 Thread Fredrik Lundh
"Bouzite, Radouan" wrote: > I am looking for the python script to convert pcx to zpl ? I'm not aware of any such script, and I don't have any idea what ZPL (or Zebra) is. Is this something you've seen somewhere, and need help locating, or are you just asking if it exists? _

[Image-SIG] Converting to zebra (ZPL) format

2006-09-14 Thread Bouzite, Radouan
I am looking for the python script to convert pcx to zpl ?     Radouan Bouzite Unix Admin. IPEX Inc. [EMAIL PROTECTED] Tel: (514) 769-2200, ext. 291 Fax: (514) 769-1672   ___

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-22 Thread Fredrik Lundh
Peter Dempsey wrote: > Hi Douglas, > > Your solution worked very well with a couple of minor tweaks. wow. it's things like this that makes you wonder why you spend time helping people. ___ Image-SIG maillist - Image-SIG@python.org http://mail.py

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-21 Thread Peter Dempsey
Hi Douglas, Your solution worked very well with a couple of minor tweaks. 'Takes a lot less lines of code than my effort. This is what I came up with today... #! /usr/bin/env python import Image, sys for arg in sys.argv[1:]: im = Image.open(arg).convert("1").rotate(0) # convert("1"

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-20 Thread Fredrik Lundh
Peter Dempsey wrote: > I made some progress today by using PIL today. I managed to load the image and > cycle through the raw image data. The code is below. I'll look at your > suggestion tomorrow, Douglas. The string types methods sound a bit more > useful than my fumblings. so why not use the c

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-20 Thread Joao S. O. Bueno Calligaris
On Monday 20 June 2005 20:07, Peter Dempsey wrote: > Thanks Douglas and Jaos for your replies. > Ideally, I should be able to produce a decoder plug-in for ZPL but > I have a lot to learn before that happens. Given the lack of hits I > got while looking for a ready-made converter, there is not muc

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-20 Thread Peter Dempsey
Thanks Douglas and Jaos for your replies. I made some progress today by using PIL today. I managed to load the image and cycle through the raw image data. The code is below. I'll look at your suggestion tomorrow, Douglas. The string types methods sound a bit more useful than my fumblings. As I

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-19 Thread Douglas Bagnall
hi Peter, > > Thanks for the reply folks. Here is the code I have produced so far... > #! /usr/bin/python > > import sys > import string Don't use the string module, use the string type methods: http://python.org/doc/2.3.5/lib/string-methods.html Read the next page too, about string formattin

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-18 Thread Peter Dempsey
On Saturday 18 Jun 2005 02:40, you wrote: > Hi Peter, > > despite Fredik's lengthy and carefull answer, I think that is not what > you were asking for - his program is suitable to print images inpout > inline inside a Python program as sequences of 0 and 1's. > > But I think you were asking for a w

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-18 Thread Fredrik Lundh
Joao S. O. Bueno Calligaris wrote: > despite Fredik's lengthy and carefull answer, I think that is not what > you were asking for - his program is suitable to print images inpout > inline inside a Python program as sequences of 0 and 1's. the first section of the script was sample code which illu

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-17 Thread Joao S. O. Bueno Calligaris
Hi Peter, despite Fredik's lengthy and carefull answer, I think that is not what you were asking for - his program is suitable to print images inpout inline inside a Python program as sequences of 0 and 1's. But I think you were asking for a way to print a generic image read from a disk file.

Re: [Image-SIG] Converting to zebra (ZPL) format

2005-06-17 Thread Fredrik Lundh
Peter Dempsey wrote: > Hi folks, I'm a newbie to python so please be gentle. > > I want to convert an image to a format suitable for use in a Zebra label > printer. The data sent to the printer consists of a string of hex characters. > Each byte converts to a binary set of dots on the label. > > F

[Image-SIG] Converting to zebra (ZPL) format

2005-06-16 Thread Peter Dempsey
Hi folks, I'm a newbie to python so please be gentle. I want to convert an image to a format suitable for use in a Zebra label printer. The data sent to the printer consists of a string of hex characters. Each byte converts to a binary set of dots on the label. FF becomes A5 becomes 10