Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
flameface committed Feb 13, 2024
1 parent 2270cd2 commit 95c1d67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
interface cropOption {
imagePath: string,
x: number,
y: number,
width: number,
height: number,
borderRadius?: number
x?: number,
y?: number,
width?: number,
height?: number,
borderRadius?: number,
circle?: boolean,
cropCenter?: boolean
}

declare function cropImage(options: cropOption): Promise<Buffer>;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cropify",
"types": "./index.d.ts",
"description": "Crop and round image corners seamlessly.",
"version": "1.0.3",
"version": "1.0.5",
"main": "index.js",
"publishConfig": {
"access": "public",
Expand Down

0 comments on commit 95c1d67

Please sign in to comment.