You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

cropify

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cropify - npm Package Compare versions

Comparing version
1.0.9-beta.1
to
1.0.9
+1
-1
package.json
{
"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",

@@ -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 @@ ![example](https://ik.imagekit.io/unburn/CropifyExample.svg)