Re: [PLUG] QR Code generator with text label

2015-05-31 Thread Chuck Hast
OK, I have a boat load of info here, now to try it all and see what works,
if any
one has anymore recommendations I am all ears.

What I want to have visible on the label is the QR code and a brief descrip-
tion of the labeled item along with the P#. The QR code will have the full
des-
cription and the next step will be to capture the info into the parts db so
that
as we use parts off of the vehicles all we have to do is image the QR code
and the part is noted and removed, but first step is to get the labels so
that
I can label the parts.

Thanks folks for all of this great info.

On Sun, May 31, 2015 at 9:39 AM, Galen Seitz  wrote:

> On 05/30/15 21:33, Chuck Hast wrote:
> > I have been looking for something that will generate QR codes to
> > create labels, I also want to add a short human readable line on
> > the label but so far I have not found a single step Linux solution to
> > do so.  What I want is the QR code and above or below it a short
> > human readable description. I can find windows stuff that will do it
> > and I can find some on line generators, but not sure that they would
> > like it if I did a whole parts inventory.
> >
> > I see some people have used other applications to overlay the QR
> > code onto something with the text or vice versa, but I want something
> > that is reasonably simple to use and runs on Linux so that I can set
> > it up for non-tech types to use.
>
>
> I agree with Michael R.  It sounds like a job for Imagemagick.  Generate
> the QR png file, then use convert to add the text.
>
> http://www.imagemagick.org/Usage/annotating/>
>
>
> galen
> --
> Galen Seitz
> gal...@seitzassoc.com
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



-- 

Chuck Hast  -- KP4DJT --
Glass, five thousand years of history and getting better.
The only container material that the USDA gives blanket approval on.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-31 Thread Galen Seitz
On 05/30/15 21:33, Chuck Hast wrote:
> I have been looking for something that will generate QR codes to
> create labels, I also want to add a short human readable line on
> the label but so far I have not found a single step Linux solution to
> do so.  What I want is the QR code and above or below it a short
> human readable description. I can find windows stuff that will do it
> and I can find some on line generators, but not sure that they would
> like it if I did a whole parts inventory.
> 
> I see some people have used other applications to overlay the QR
> code onto something with the text or vice versa, but I want something
> that is reasonably simple to use and runs on Linux so that I can set
> it up for non-tech types to use.


I agree with Michael R.  It sounds like a job for Imagemagick.  Generate
the QR png file, then use convert to add the text.

http://www.imagemagick.org/Usage/annotating/>


galen
-- 
Galen Seitz
gal...@seitzassoc.com
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-31 Thread John Jason Jordan
On Sat, 30 May 2015 21:33:29 -0700
Chuck Hast  dijo:

>I have been looking for something that will generate QR codes to
>create labels, I also want to add a short human readable line on
>the label but so far I have not found a single step Linux solution to
>do so.  

Scribus (since 1.4.3) has the ability to create QR codes in its barcode
generator utility. You'd have to add the text line manually, though.
And then export both as whatever form you want the ultimate output.

I also believe LibreOffice can generate QR codes, although it might
require installing an extension.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-31 Thread Bill Barry
On Sat, May 30, 2015 at 10:59 PM, Chuck Hast  wrote:
> Qrencode (cmd line tool) generates png files, Qreator (gui tool) generates
> png files too. I think I will see if I can take a look at the source of
> qreator and
> see how hard it might be to "bend" it to do a line of text adjacent to the
> QR
> code. If I can do that, i have my solution, put it on some older computers
> and
> add a label printer and done. The Brother QL-570 will work quite well and
> Brother has a nice set of Linux/Unix drivers for their products. Worse case
> is
> I create the QR codes and use Gimp to put them into something that has a
> text line on it , then turn the whole thing into a small file to be
> printed. I do
> one for each piece of hardware I need to label.
>

Here is a python script I wrote a while back that does something like
you want.. The QR code is a URL (https://example.com/stuff/rack/1) and
there is some txt  "rack 1" underneath it. It has been a while since I
wrote it, so it looks like gibberish to me.

Bill

from PIL import Image, ImageDraw,ImageFont
import qrcode

qr = qrcode.QRCode(
version=3,
error_correction=qrcode.constants.ERROR_CORRECT_Q,
box_size=10,
border=4,
)

image  = Image.new( "RGBA", ( 410, 480 ) ,"white");

qr.add_data('https://example.com/stuff/rack/1')
qr.make(fit=True)

img = qr.make_image()
print img.size
image.paste(img, (0,0), img.convert("RGBA") );


draw = ImageDraw.Draw(image)
font = ImageFont.truetype("/usr/lib/cinelerra/fonts/arial.ttf",60)
#font = ImageFont.load_default()
txt = "rack 1"
draw.text((100, 410), txt, (0,0,0), font=font)


image.save("qr.png")
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-31 Thread Rich Shepard
On Sat, 30 May 2015, Chuck Hast wrote:

> I have qrencode on my machine and have been playing around with it, I also
> have qreator which is a gui, but both of them just generate the QR code,
> so I will have to figure out what I can do to merge a QR code with a short
> line of text for the label.

Chuck,

   The python print() function will produce that text line. Put it all in a
simple script and you can place the text either above or below the QR code.

Rich
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-30 Thread Nat Taylor
Or generate the qr codes and use HTML to add a title to the images?

On Sat, May 30, 2015 at 10:59 PM, Chuck Hast  wrote:

> Qrencode (cmd line tool) generates png files, Qreator (gui tool) generates
> png files too. I think I will see if I can take a look at the source of
> qreator and
> see how hard it might be to "bend" it to do a line of text adjacent to the
> QR
> code. If I can do that, i have my solution, put it on some older computers
> and
> add a label printer and done. The Brother QL-570 will work quite well and
> Brother has a nice set of Linux/Unix drivers for their products. Worse case
> is
> I create the QR codes and use Gimp to put them into something that has a
> text line on it , then turn the whole thing into a small file to be
> printed. I do
> one for each piece of hardware I need to label.
>
>
>
> On Sat, May 30, 2015 at 10:49 PM, Michael Rasmussen 
> wrote:
>
> > On Sat, May 30, 2015 at 10:29:31PM -0700, Chuck Hast wrote:
> > > I have qrencode on my machine and have been playing around with it, I
> > also
> > > have qreator which is a gui, but both of them just generate the QR
> code,
> > so
> > > I
> > > will have to figure out what I can do to merge a QR code with a short
> > line
> > > of
> > > text for the label. Also did not find the python2 references using
> > > Synaptic.
> > >
> > > The search was done using pacman, was that Arch?
> >
> > Yes, he seems to be on an Arch system.
> >
> > QR codes are image files. The online generator I just checked creates
> JPG,
> > EPS, or SVG.
> > So if you think about the issue as "how do I add text to my image ..." it
> > gets (?) easier.
> >
> > If you go the JPG route you could use imagemagik to add the text you
> want.
> > Plenty of online information on how to do that.
> >
> > Using an SVG - if the file they generate is sane - could also have text
> > added without too much pain.
> >
> > --
> >   Michael Rasmussen, Portland Oregon
> > Be Appropriate && Follow Your Curiosity
> > May the best days of your past be the worst days of your future.
> > ___
> > PLUG mailing list
> > PLUG@lists.pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
>
>
>
> --
>
> Chuck Hast  -- KP4DJT --
> Glass, five thousand years of history and getting better.
> The only container material that the USDA gives blanket approval on.
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-30 Thread Chuck Hast
Qrencode (cmd line tool) generates png files, Qreator (gui tool) generates
png files too. I think I will see if I can take a look at the source of
qreator and
see how hard it might be to "bend" it to do a line of text adjacent to the
QR
code. If I can do that, i have my solution, put it on some older computers
and
add a label printer and done. The Brother QL-570 will work quite well and
Brother has a nice set of Linux/Unix drivers for their products. Worse case
is
I create the QR codes and use Gimp to put them into something that has a
text line on it , then turn the whole thing into a small file to be
printed. I do
one for each piece of hardware I need to label.



On Sat, May 30, 2015 at 10:49 PM, Michael Rasmussen 
wrote:

> On Sat, May 30, 2015 at 10:29:31PM -0700, Chuck Hast wrote:
> > I have qrencode on my machine and have been playing around with it, I
> also
> > have qreator which is a gui, but both of them just generate the QR code,
> so
> > I
> > will have to figure out what I can do to merge a QR code with a short
> line
> > of
> > text for the label. Also did not find the python2 references using
> > Synaptic.
> >
> > The search was done using pacman, was that Arch?
>
> Yes, he seems to be on an Arch system.
>
> QR codes are image files. The online generator I just checked creates JPG,
> EPS, or SVG.
> So if you think about the issue as "how do I add text to my image ..." it
> gets (?) easier.
>
> If you go the JPG route you could use imagemagik to add the text you want.
> Plenty of online information on how to do that.
>
> Using an SVG - if the file they generate is sane - could also have text
> added without too much pain.
>
> --
>   Michael Rasmussen, Portland Oregon
> Be Appropriate && Follow Your Curiosity
> May the best days of your past be the worst days of your future.
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



-- 

Chuck Hast  -- KP4DJT --
Glass, five thousand years of history and getting better.
The only container material that the USDA gives blanket approval on.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-30 Thread Michael Rasmussen
On Sat, May 30, 2015 at 10:29:31PM -0700, Chuck Hast wrote:
> I have qrencode on my machine and have been playing around with it, I also
> have qreator which is a gui, but both of them just generate the QR code, so
> I
> will have to figure out what I can do to merge a QR code with a short line
> of
> text for the label. Also did not find the python2 references using
> Synaptic.
> 
> The search was done using pacman, was that Arch?

Yes, he seems to be on an Arch system.

QR codes are image files. The online generator I just checked creates JPG, EPS, 
or SVG.
So if you think about the issue as "how do I add text to my image ..." it gets 
(?) easier.

If you go the JPG route you could use imagemagik to add the text you want.
Plenty of online information on how to do that.  

Using an SVG - if the file they generate is sane - could also have text added 
without too much pain.

-- 
  Michael Rasmussen, Portland Oregon  
Be Appropriate && Follow Your Curiosity
May the best days of your past be the worst days of your future.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-30 Thread Chuck Hast
I have qrencode on my machine and have been playing around with it, I also
have qreator which is a gui, but both of them just generate the QR code, so
I
will have to figure out what I can do to merge a QR code with a short line
of
text for the label. Also did not find the python2 references using
Synaptic.

The search was done using pacman, was that Arch?

On Sat, May 30, 2015 at 9:49 PM, Nat Taylor  wrote:

> pacman -Ss QR code
>
> extra/prison 1.1.1-1 [installed]
>
> A barcode API to produce QRCode barcodes and DataMatrix barcodes
>
> extra/qrencode 3.4.4-1 [installed]
>
> C library for encoding data in a QR Code symbol.
>
> community/python-qrencode 1.01-8
>
> A simple wrapper for the C qrencode library
>
> community/python2-qrcode 5.1-1
>
> Python library to generate QR codes
>
> community/python2-qrencode 1.01-8
>
> A simple wrapper for the C qrencode library
>
> On Sat, May 30, 2015 at 9:36 PM, benjamin barber 
> wrote:
>
> > it sounds like you need a programmer.
> >
> > On Sat, May 30, 2015 at 9:33 PM, Chuck Hast  wrote:
> >
> > > I have been looking for something that will generate QR codes to
> > > create labels, I also want to add a short human readable line on
> > > the label but so far I have not found a single step Linux solution to
> > > do so.  What I want is the QR code and above or below it a short
> > > human readable description. I can find windows stuff that will do it
> > > and I can find some on line generators, but not sure that they would
> > > like it if I did a whole parts inventory.
> > >
> > > I see some people have used other applications to overlay the QR
> > > code onto something with the text or vice versa, but I want something
> > > that is reasonably simple to use and runs on Linux so that I can set
> > > it up for non-tech types to use.
> > >
> > >
> > > --
> > >
> > > Chuck Hast  -- KP4DJT --
> > > Glass, five thousand years of history and getting better.
> > > The only container material that the USDA gives blanket approval on.
> > > ___
> > > PLUG mailing list
> > > PLUG@lists.pdxlinux.org
> > > http://lists.pdxlinux.org/mailman/listinfo/plug
> > >
> > ___
> > PLUG mailing list
> > PLUG@lists.pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



-- 

Chuck Hast  -- KP4DJT --
Glass, five thousand years of history and getting better.
The only container material that the USDA gives blanket approval on.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-30 Thread Nat Taylor
pacman -Ss QR code

extra/prison 1.1.1-1 [installed]

A barcode API to produce QRCode barcodes and DataMatrix barcodes

extra/qrencode 3.4.4-1 [installed]

C library for encoding data in a QR Code symbol.

community/python-qrencode 1.01-8

A simple wrapper for the C qrencode library

community/python2-qrcode 5.1-1

Python library to generate QR codes

community/python2-qrencode 1.01-8

A simple wrapper for the C qrencode library

On Sat, May 30, 2015 at 9:36 PM, benjamin barber 
wrote:

> it sounds like you need a programmer.
>
> On Sat, May 30, 2015 at 9:33 PM, Chuck Hast  wrote:
>
> > I have been looking for something that will generate QR codes to
> > create labels, I also want to add a short human readable line on
> > the label but so far I have not found a single step Linux solution to
> > do so.  What I want is the QR code and above or below it a short
> > human readable description. I can find windows stuff that will do it
> > and I can find some on line generators, but not sure that they would
> > like it if I did a whole parts inventory.
> >
> > I see some people have used other applications to overlay the QR
> > code onto something with the text or vice versa, but I want something
> > that is reasonably simple to use and runs on Linux so that I can set
> > it up for non-tech types to use.
> >
> >
> > --
> >
> > Chuck Hast  -- KP4DJT --
> > Glass, five thousand years of history and getting better.
> > The only container material that the USDA gives blanket approval on.
> > ___
> > PLUG mailing list
> > PLUG@lists.pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-30 Thread Mansoor Nathani
On Sun, May 31, 2015 at 12:36 AM, benjamin barber 
wrote:

> it sounds like you need a programmer.
>

or two :-)


>
> On Sat, May 30, 2015 at 9:33 PM, Chuck Hast  wrote:
>
> > I have been looking for something that will generate QR codes to
> > create labels, I also want to add a short human readable line on
> > the label but so far I have not found a single step Linux solution to
> > do so.  What I want is the QR code and above or below it a short
> > human readable description. I can find windows stuff that will do it
> > and I can find some on line generators, but not sure that they would
> > like it if I did a whole parts inventory.
> >
> > I see some people have used other applications to overlay the QR
> > code onto something with the text or vice versa, but I want something
> > that is reasonably simple to use and runs on Linux so that I can set
> > it up for non-tech types to use.
> >
> >
> > --
> >
> > Chuck Hast  -- KP4DJT --
> > Glass, five thousand years of history and getting better.
> > The only container material that the USDA gives blanket approval on.
> > ___
> > PLUG mailing list
> > PLUG@lists.pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] QR Code generator with text label

2015-05-30 Thread benjamin barber
it sounds like you need a programmer.

On Sat, May 30, 2015 at 9:33 PM, Chuck Hast  wrote:

> I have been looking for something that will generate QR codes to
> create labels, I also want to add a short human readable line on
> the label but so far I have not found a single step Linux solution to
> do so.  What I want is the QR code and above or below it a short
> human readable description. I can find windows stuff that will do it
> and I can find some on line generators, but not sure that they would
> like it if I did a whole parts inventory.
>
> I see some people have used other applications to overlay the QR
> code onto something with the text or vice versa, but I want something
> that is reasonably simple to use and runs on Linux so that I can set
> it up for non-tech types to use.
>
>
> --
>
> Chuck Hast  -- KP4DJT --
> Glass, five thousand years of history and getting better.
> The only container material that the USDA gives blanket approval on.
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug