2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-05 23:53:27 +00:00

Fix degrees error

This commit is contained in:
j433866
2019-02-19 16:10:53 +00:00
parent 57e1061063
commit eb8725a0db

View File

@@ -51,7 +51,7 @@ class RotateImage extends Operation {
jimp.read(Buffer.from(input)) jimp.read(Buffer.from(input))
.then(image => { .then(image => {
image image
.rotate(degrees / 100) .rotate(degrees)
.getBuffer(jimp.AUTO, (error, result) => { .getBuffer(jimp.AUTO, (error, result) => {
if (error){ if (error){
reject(new OperationError("Error getting the new image buffer")); reject(new OperationError("Error getting the new image buffer"));