Disable jpeg->jpeg conversion
This commit is contained in:
parent
227fd7221a
commit
5df296e7bc
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue