Commit 4bf860a1 authored by Volker Krause's avatar Volker Krause
Browse files

Don't use ZXing's pure mode when we know we have a non-pure image

This is the first step towards supporting extracting from full-page raster
image PDF documents when explicitly requested to do so. Needed for example
for Danish COVID certificates.
parent 26813cf9
Pipeline #135409 passed with stages
in 1 minute and 29 seconds
......@@ -232,7 +232,7 @@ void BarcodeDecoder::decodeZxing(const QImage &img, BarcodeDecoder::BarcodeTypes
hints.setIsPure((format & BarcodeDecoder::IgnoreAspectRatio) == 0);
// convert if img is in a format ZXing can't handle directly
const auto res = zxingImageFormat(img.format()) == ZXing::ImageFormat::None ?
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment