From 0d94f8a4f6adc1418f48e980dfcd019beff4d61b Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sat, 16 May 2020 15:23:07 +0200 Subject: [PATCH] Make image support unconditional --- qml/pages/utils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qml/pages/utils.js b/qml/pages/utils.js index 17a0f79..ca0c8f5 100644 --- a/qml/pages/utils.js +++ b/qml/pages/utils.js @@ -13,11 +13,11 @@ function supported_formats(printer, ConvertChecker) mimetypes.push("application/postscript"); supported.push("Postscript"); } - if(has(formats, "image/jpeg")) - { - mimetypes.push("image/jpeg"); - supported.push("JPEG"); - } + + mimetypes.push("image/jpeg"); + supported.push("JPEG"); + mimetypes.push("image/png"); + supported.push("PNG"); //var info = "MFG:Hewlett-Packard;CMD:PJL,BIDI-ECP,PJL,POSTSCRIPT,PDF,PCLXL,PCL;MDL:HP LaserJet P3010 Series;CLS:PRINTER;DES:Hewlett-Packard ".split(";"); var maybe = []