mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Remove duplicate function.
Fix reading QR codes with transparent backgrounds
This commit is contained in:
@@ -33,6 +33,8 @@ export async function parseQrCode(input, normalise) {
|
||||
image.background(0xFFFFFFFF);
|
||||
image.normalize();
|
||||
image.greyscale();
|
||||
image = await image.getBufferAsync(jimp.MIME_JPEG);
|
||||
image = await jimp.read(image);
|
||||
}
|
||||
} catch (err) {
|
||||
throw new OperationError(`Error normalising iamge. (${err})`);
|
||||
|
||||
Reference in New Issue
Block a user