Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SimulPiscator committed Jan 6, 2024
1 parent e342fdc commit 59ab4e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/scanjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ ScanJob::Private::init(const ScanSettingsXml& settings, bool autoselectFormat, c
else if (mIntent == "Photo")
mDocumentFormat = HttpServer::MIME_TYPE_JPEG;

// If Apple Airscan requests JPEG, we send PNG instead because it is
// lossless and supports all bit depths.
if (mDocumentFormat.empty() || autoselectFormat)
mDocumentFormat = HttpServer::MIME_TYPE_PNG;
std::clog << "document format used: " << mDocumentFormat << "\n";
Expand Down

0 comments on commit 59ab4e4

Please sign in to comment.