From 2da5baad591c48f5cb086e646d192b71ed30c4cc Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sat, 16 May 2020 15:33:22 +0200 Subject: [PATCH] Nevermind, only consider images supported if raster formats are supported --- qml/pages/utils.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/qml/pages/utils.js b/qml/pages/utils.js index ca0c8f5..5c51925 100644 --- a/qml/pages/utils.js +++ b/qml/pages/utils.js @@ -14,11 +14,13 @@ function supported_formats(printer, ConvertChecker) supported.push("Postscript"); } - mimetypes.push("image/jpeg"); - supported.push("JPEG"); - mimetypes.push("image/png"); - supported.push("PNG"); - + if ( has(formats, "image/pwg-raster") || has(formats, "image/urf")) + { + 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 = [] var info = printer.attrs["printer-info"] ? printer.attrs["printer-info"].value.split(";") : [];