diff --git a/mkinvoice.go b/mkinvoice.go index 641a7fb..7853b9d 100644 --- a/mkinvoice.go +++ b/mkinvoice.go @@ -269,7 +269,7 @@ func printQR() { opt.ImageType = "png" opt.ReadDpi = true - pdf.ImageOptions("qr-images/"+invoiceData.Metadata.InvoiceNr+".png", 0, 200, 0, 0, false, opt, 0, "") + pdf.ImageOptions("qr-images/"+invoiceData.Metadata.InvoiceNr+".png", 0, 200, -1, -1, false, opt, 0, "") } func CreateInvoice() { diff --git a/qrbill.sh b/qrbill.sh index 3098de0..5403701 100755 --- a/qrbill.sh +++ b/qrbill.sh @@ -31,7 +31,8 @@ if [ $? -ne 0 ]; then fi #convert ${mydir}/temp/${INVNO}.svg ${mydir}/qr-images/${INVNO}.jpg -inkscape ${mydir}/temp/${INVNO}.svg --export-width=794 --export-height=397 --export-filename ${mydir}/qr-images/${INVNO}.png +#inkscape ${mydir}/temp/${INVNO}.svg --export-width=794 --export-height=397 --export-filename ${mydir}/qr-images/${INVNO}.png +inkscape ${mydir}/temp/${INVNO}.svg --export-dpi=300 --export-filename ${mydir}/qr-images/${INVNO}.png #cairosvg ${mydir}/temp/${INVNO}.svg -o ${mydir}/qr-images/${INVNO}.png if [ $? -eq 0 ]; then echo blabla