mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Add status messages for image operations
This commit is contained in:
parent
833c1cd98f
commit
4a7ea469d4
8 changed files with 24 additions and 3 deletions
|
@ -52,6 +52,8 @@ class ImageOpacity extends Operation {
|
|||
}
|
||||
|
||||
const image = await jimp.read(Buffer.from(input));
|
||||
if (ENVIRONMENT_IS_WORKER())
|
||||
self.sendStatusMessage("Changing image opacity...");
|
||||
image.opacity(opacity / 100);
|
||||
|
||||
const imageBuffer = await image.getBufferAsync(jimp.MIME_PNG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue