mirror of
https://github.com/gchq/CyberChef
synced 2025-12-21 10:43:18 +00:00
Add status messages for image operations
This commit is contained in:
@@ -42,6 +42,8 @@ class InvertImage extends Operation {
|
||||
throw new OperationError("Invalid input file format.");
|
||||
}
|
||||
const image = await jimp.read(Buffer.from(input));
|
||||
if (ENVIRONMENT_IS_WORKER())
|
||||
self.sendStatusMessage("Inverting image...");
|
||||
image.invert();
|
||||
const imageBuffer = await image.getBufferAsync(jimp.AUTO);
|
||||
return [...imageBuffer];
|
||||
|
||||
Reference in New Issue
Block a user