diff --git a/models/magick/index.js b/models/magick/index.js index c077ef8..9ef335d 100644 --- a/models/magick/index.js +++ b/models/magick/index.js @@ -64,6 +64,20 @@ class Magick { this.magickCommand.push("-resize"); this.magickCommand.push(`${width}x${height}!`); } + + /** + * reflect the scanlines in the vertical direction. The image will be mirrored upside-down. + */ + flip() { + this.magickCommand.push("-flip"); + } + + /** + * Reflect the scanlines in the horizontal direction, just like the image in a vertical mirror. + */ + flop() { + this.magickCommand.push("-flop"); + } async execCommand() { try {