mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Add tests, however non-functional due to lack of File in Node
Also add jimp to package.json
This commit is contained in:
parent
5a9583c970
commit
18693d2471
6 changed files with 44 additions and 35 deletions
|
@ -855,7 +855,7 @@ class Utils {
|
|||
let dataURI = "data:";
|
||||
dataURI += type + ";";
|
||||
dataURI += "base64," + toBase64(buff);
|
||||
return "<img src='" + dataURI + "'>";
|
||||
return "<img style='max-width: 100%;' src='" + dataURI + "'>";
|
||||
} else {
|
||||
return `<pre>${Utils.escapeHtml(Utils.arrayBufferToStr(buff.buffer))}</pre>`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue