projects
/
Printer-Zebra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
19ea357
)
added -units PixelsPerInch which doesn't fix -density
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 5 Feb 2012 18:22:48 +0000
(19:22 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 5 Feb 2012 18:22:48 +0000
(19:22 +0100)
svg-render.pl
patch
|
blob
|
history
diff --git
a/svg-render.pl
b/svg-render.pl
index
e73ae0e
..
1de0060
100755
(executable)
--- a/
svg-render.pl
+++ b/
svg-render.pl
@@
-23,7
+23,7
@@
my $call4 = join(' ', @ARGV);
my $pbm = "/tmp/$barcode.pbm";
open(my $from, '<', "templates/$size.svg");
my $pbm = "/tmp/$barcode.pbm";
open(my $from, '<', "templates/$size.svg");
-open(my $to, '|-', "convert -density $density - $pbm");
+open(my $to, '|-', "convert -
units PixelsPerInch -
density $density - $pbm");
while(<$from>) {
s/1301272944/$barcode/gs && warn "# barcode $barcode\n";
s/##call1##/$call1/gs && warn "# 1: $call1\n";
while(<$from>) {
s/1301272944/$barcode/gs && warn "# barcode $barcode\n";
s/##call1##/$call1/gs && warn "# 1: $call1\n";