Title: Batch QR codes? Post by: WorldOfBitcoin on December 18, 2012, 10:13:04 AM I've used the Google QR code generator before.
But I want to run a script that takes a list of address's (excel or csv) and turns them into hundreds of individual .jpg files. ware do I start? Title: Re: Batch QR codes? Post by: Aldur1 on December 18, 2012, 10:17:12 AM Is this what your looking for:
http://blog.qr4.nl/Batch-QR-Code.aspx Title: Re: Batch QR codes? Post by: WorldOfBitcoin on December 18, 2012, 10:20:09 AM "The QR4 Desktop QR Code Software package for office use costs 1489 €"
really? some one actually paid them that? Title: Re: Batch QR codes? Post by: WorldOfBitcoin on December 18, 2012, 10:24:08 AM Think I found a script but im not sure how to use it.
https://dl-web.dropbox.com/get/generate.py?w=1d77d447 Title: Re: Batch QR codes? Post by: tbcoin on December 18, 2012, 10:26:27 AM On linux you can use qrencode in a script to do this
Title: Re: Batch QR codes? Post by: WorldOfBitcoin on December 18, 2012, 10:31:41 AM http://www.aurora3dsoftware.com/buy.html
is only 20$ still looking... Title: Re: Batch QR codes? Post by: WorldOfBitcoin on December 18, 2012, 10:33:04 AM On linux you can use qrencode in a script to do this I have Ubuntu running on VMware. can you show an example? Title: Re: Batch QR codes? Post by: tbcoin on December 18, 2012, 10:41:59 AM On linux you can use qrencode in a script to do this I have Ubuntu running on VMware. can you show an example? for a simple addr list do not even need a script for x in `cat addrlist.txt`; do qrencode -o $x.png $x; done EDIT: you need install qrencode first ;) ( apt-get install qrencode ) You can use -s to specify the size of dot Title: Re: Batch QR codes? Post by: WorldOfBitcoin on December 18, 2012, 10:56:19 AM qrencode -o test.png add2.txt
returns a singular file png of "add2.txt" qrencode -o test.png $add2.txt returns a singular file png of "add2" qrencode -o $test.png $add2.txt does nothing What am I missing? my txt file looks like this https://dl-web.dropbox.com/get/add2.txt?w=79ca2f0c On linux you can use qrencode in a script to do this I have Ubuntu running on VMware. can you show an example? for a simple addr list do not even need a script for x in `cat addrlist.txt`; do qrencode -o $x.png $x; done EDIT: you need install qrencode first ;) ( apt-get install qrencode ) Title: Re: Batch QR codes? Post by: tbcoin on December 18, 2012, 11:08:35 AM you're not doing what I said.
copy and paste: Quote for x in `cat add2.txt`; do qrencode -o $x.png $x; done EDIT: I can't see your dropbox file Title: Re: Batch QR codes? Post by: WorldOfBitcoin on December 18, 2012, 12:19:28 PM so, ran into a bit of a snag
I need to number the files in the order they are processed. -o FILENAME write PNG image to FILENAME. If '-' is specified, the result will be output to standard output. If -S is given, structured symbols are written to FILENAME-01.png, FILENAME-02.png, ...; if specified, remove a trailing '.png' from FILENAME. if I try for x in `cat add2.txt`; do qrencode -o -S $x.png $x; done it does a single file named -S ive tried $-.png $'-'.png for x in `cat add2.txt`; do qrencode -o -S $x.png $x; done for x in `cat add2.txt`; do qrencode -S $x; done <this outputs a single file named himbhs> I dont understand "If -S is given" trying to get the -01 -02 -03 ext Title: Re: Batch QR codes? Post by: tbcoin on December 18, 2012, 12:55:10 PM i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++); done
Title: Re: Batch QR codes? Post by: Raoul Duke on December 18, 2012, 01:17:26 PM so, ran into a bit of a snag I need to number the files in the order they are processed. -o FILENAME write PNG image to FILENAME. If '-' is specified, the result will be output to standard output. If -S is given, structured symbols are written to FILENAME-01.png, FILENAME-02.png, ...; if specified, remove a trailing '.png' from FILENAME. if I try for x in `cat add2.txt`; do qrencode -o -S $x.png $x; done it does a single file named -S ive tried $-.png $'-'.png for x in `cat add2.txt`; do qrencode -o -S $x.png $x; done for x in `cat add2.txt`; do qrencode -S $x; done <this outputs a single file named himbhs> I dont understand "If -S is given" trying to get the -01 -02 -03 ext the -S needs to come before the -o and you need to remove the .png from the filename. altho I don't understand why do you want that option, given that the files will already be numbered. Title: Re: Batch QR codes? Post by: WorldOfBitcoin on December 18, 2012, 01:30:43 PM Quote the -S needs to come before the -o and you need to remove the .png from the filename. altho I don't understand why do you want that option, given that the files will already be numbered. trying i=1;for x in `cat add2.txt`; do qrencode -S -o $i $x; ((i++); done is returning bash: syntax error near unexpected token `done' I need the files in order, because the order they are in the txt file is very different then "alphabetical" how it dumps out on my desktop I tried moving my excel around and it counts differently. the files are saving as the bitcoin address, and it acting weird with the order 1A... 1Z 11 vr 11 12.. 1A I tried sorting by "time" but that didnt work Title: Re: Batch QR codes? Post by: Raoul Duke on December 18, 2012, 01:54:53 PM Try this one
Code: i=1;for x in `cat add2.txt`; do qrencode -S -o $i $x; ((i++)); done Title: Re: Batch QR codes? Post by: tbcoin on December 18, 2012, 01:58:07 PM i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++); done this works, why you change it? Title: Re: Batch QR codes? Post by: Raoul Duke on December 18, 2012, 02:00:18 PM i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++); done this works, why you change it? It will work when you fix the error you have. It's missing the last closing parenthesis. And yes, the -S is not needed, also, so the correct one Code: i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++)); done Title: Re: Batch QR codes? Post by: tbcoin on December 18, 2012, 02:02:17 PM i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++); done this works, why you change it? It will work when you fix the error you have. It's missing the last closing parenthesis. And yes, the -S is not needed, also, so the correct one Code: i=1;for x in `cat add2.txt`; do qrencode -o $i.png $x; ((i++)); done ohh men, true Title: Re: Batch QR codes? Post by: cindy313 on May 27, 2014, 09:07:49 AM hey, i just found this qr code in excel (http://www.keepautomation.com/products/excel_barcode/barcodes/qrcode.html)
where you can also found qr code reader (http://www.keepautomation.com/products/net_barcode_reader/barcode_qrcode.html) |