fix bad resolution

This commit is contained in:
Joerg Lehmann 2020-06-27 21:48:09 +02:00
parent 24e895102b
commit b05854a20c
2 changed files with 3 additions and 2 deletions

View File

@ -269,7 +269,7 @@ func printQR() {
opt.ImageType = "png" opt.ImageType = "png"
opt.ReadDpi = true 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() { func CreateInvoice() {

View File

@ -31,7 +31,8 @@ if [ $? -ne 0 ]; then
fi fi
#convert ${mydir}/temp/${INVNO}.svg ${mydir}/qr-images/${INVNO}.jpg #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 #cairosvg ${mydir}/temp/${INVNO}.svg -o ${mydir}/qr-images/${INVNO}.png
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo blabla echo blabla