Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@jimp/plugin-rotate

Package Overview
Dependencies
Maintainers
2
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jimp/plugin-rotate - npm Package Compare versions

Comparing version 0.18.0--canary.1135.911ed04.0 to 0.18.0

es/index.js

12

CHANGELOG.md

@@ -0,1 +1,13 @@

# v0.17.6 (Sat Feb 04 2023)
#### 🐛 Bug Fix
- fix documentation about rotation direction. [#1062](https://github.com/jimp-dev/jimp/pull/1062) ([@fabb](https://github.com/fabb))
#### Authors: 1
- [@fabb](https://github.com/fabb)
---
# v0.16.3 (Sat Feb 04 2023)

@@ -2,0 +14,0 @@

4

dist/index.js

@@ -11,3 +11,3 @@ "use strict";

/**
* Rotates an image clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object.
* Rotates an image counter-clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object.
* @param {number} deg the number of degrees to rotate the image by

@@ -98,3 +98,3 @@ * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed

/**
* Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately.
* Rotates the image counter-clockwise by a number of degrees. By default the width and height of the image will be resized appropriately.
* @param {number} deg the number of degrees to rotate the image by

@@ -101,0 +101,0 @@ * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed

{
"name": "@jimp/plugin-rotate",
"version": "0.18.0--canary.1135.911ed04.0",
"version": "0.18.0",
"description": "Rotate an image.",
"main": "dist/index.js",
"module": "es/index.js",
"repository": "jimp-dev/jimp",
"types": "index.d.ts",

@@ -24,3 +25,3 @@ "scripts": {

"@babel/runtime": "^7.7.2",
"@jimp/utils": "0.18.0--canary.1135.911ed04.0"
"@jimp/utils": "^0.18.0"
},

@@ -34,7 +35,7 @@ "peerDependencies": {

"devDependencies": {
"@jimp/custom": "0.18.0--canary.1135.911ed04.0",
"@jimp/plugin-blit": "0.18.0--canary.1135.911ed04.0",
"@jimp/plugin-crop": "0.18.0--canary.1135.911ed04.0",
"@jimp/plugin-resize": "0.18.0--canary.1135.911ed04.0",
"@jimp/test-utils": "0.18.0--canary.1135.911ed04.0"
"@jimp/custom": "^0.18.0",
"@jimp/plugin-blit": "^0.18.0",
"@jimp/plugin-crop": "^0.18.0",
"@jimp/plugin-resize": "^0.18.0",
"@jimp/test-utils": "^0.18.0"
},

@@ -44,3 +45,3 @@ "publishConfig": {

},
"gitHead": "911ed043b27a0eda4407a6f51d6511f12f5ef140"
"gitHead": "ad95e29bc4780fa93d9d8dba76337acf4cd450b0"
}

@@ -8,7 +8,7 @@ <div align="center">

Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately.
Rotates the image counter-clockwise by a number of degrees. By default the width and height of the image will be resized appropriately.
## Usage
- @param {number} deg the number of degrees to rotate the image by
- @param {number} deg the number of degrees to rotate the image by, counter-clockwise
- @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed

@@ -15,0 +15,0 @@ - @param {function(Error, Jimp)} cb (optional) a callback for when complete

import { throwError, isNodePattern } from "@jimp/utils";
/**
* Rotates an image clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object.
* Rotates an image counter-clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object.
* @param {number} deg the number of degrees to rotate the image by

@@ -115,3 +115,3 @@ * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed

/**
* Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately.
* Rotates the image counter-clockwise by a number of degrees. By default the width and height of the image will be resized appropriately.
* @param {number} deg the number of degrees to rotate the image by

@@ -118,0 +118,0 @@ * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc