Disable jpeg->jpeg conversion

This commit is contained in:
Anton Thomasson 2020-06-21 16:16:43 +02:00
parent 227fd7221a
commit 5df296e7bc

View file

@ -437,8 +437,8 @@ void IppPrinter::print(QJsonObject attrs, QString filename,
IppMsg job = mk_msg(o, attrs);
QByteArray contents = job.encode(IppMsg::PrintJob);
// Always convert images to get resizing
if((mimeType == documentFormat) && !mimeType.contains("image"))
// Always convert non-jpeg images to get resizing
if((mimeType == documentFormat) && (documentFormat == "image/jpeg" || !mimeType.contains("image")))
{
QByteArray filedata = file.readAll();
contents = contents.append(filedata);