+1
-1
| { | ||
| "name": "cropify", | ||
| "version": "1.0.9-beta.1", | ||
| "version": "1.0.9", | ||
| "description": "Crop and round image corners seamlessly.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
+9
-6
@@ -36,6 +36,11 @@ <img src="https://ik.imagekit.io/unburn/Cropify.svg"/> | ||
| ```javascript | ||
| import { cropImage } from "cropify"; | ||
| import fs from "fs"; | ||
| // OR | ||
| const { cropImage } = require("cropify"); | ||
| const fs = require("fs") | ||
| const fs = require("fs"); | ||
| const imagePath = 'https://th.bing.com/th/id/OIGP.914kwCtAqWQ7Lkx5hT2B?pid=ImgGn'; | ||
| const image = 'https://th.bing.com/th/id/OIGP.914kwCtAqWQ7Lkx5hT2B?pid=ImgGn'; | ||
@@ -49,3 +54,3 @@ const cropX = 0; | ||
| cropImage({ | ||
| imagePath: imagePath, | ||
| imagePath: image, | ||
| x: cropX, | ||
@@ -58,2 +63,3 @@ y: cropY, | ||
| }).then(x => { | ||
| console.log("Image has been cropped.") | ||
| fs.writeFileSync("cropped-image.png", x); | ||
@@ -63,5 +69,2 @@ }); | ||
| > **Note**: The image used in this example is generated using DALL-E | ||
| ## Output | ||
@@ -68,0 +71,0 @@  |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10022
0.27%1
-50%70
4.48%