@robinpath/image 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -93
- package/package.json +41 -8
- package/dist/image.d.ts +0 -139
- package/dist/image.d.ts.map +0 -1
- package/dist/image.js +0 -105
- package/dist/image.js.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
# @robinpath/image
|
|
2
|
-
|
|
3
|
-
> Image processing with Sharp: resize, crop, convert, rotate, flip, grayscale, blur, composite/watermark, and thumbnails
|
|
4
|
-
|
|
5
|
-
   
|
|
6
|
-
|
|
7
|
-
## Why use this module?
|
|
8
|
-
|
|
9
|
-
The `image` module lets you:
|
|
10
|
-
|
|
11
|
-
- Resize an image
|
|
12
|
-
- Crop a region from an image
|
|
13
|
-
- Convert image format (png, jpeg, webp, avif)
|
|
14
|
-
- Get image metadata
|
|
15
|
-
- Rotate an image
|
|
16
|
-
|
|
17
|
-
All functions are callable directly from RobinPath scripts with a simple, consistent API.
|
|
18
|
-
|
|
19
|
-
## Installation
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npm install @robinpath/image
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Quick Start
|
|
26
|
-
|
|
27
|
-
No credentials needed — start using it right away:
|
|
28
|
-
|
|
29
|
-
```robinpath
|
|
30
|
-
image.crop "./photo.jpg" "./cropped.jpg" {"left": 10, "top": 10, "width": 200, "height": 200}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Available Functions
|
|
34
|
-
|
|
35
|
-
| Function | Description |
|
|
36
|
-
|----------|-------------|
|
|
37
|
-
| `image.resize` | Resize an image |
|
|
38
|
-
| `image.crop` | Crop a region from an image |
|
|
39
|
-
| `image.convert` | Convert image format (png, jpeg, webp, avif) |
|
|
40
|
-
| `image.metadata` | Get image metadata |
|
|
41
|
-
| `image.rotate` | Rotate an image |
|
|
42
|
-
| `image.flip` | Flip an image vertically or horizontally |
|
|
43
|
-
| `image.grayscale` | Convert to grayscale |
|
|
44
|
-
| `image.blur` | Apply Gaussian blur |
|
|
45
|
-
| `image.composite` | Overlay one image on top of another (watermark) |
|
|
46
|
-
| `image.thumbnail` | Generate a square thumbnail |
|
|
47
|
-
|
|
48
|
-
## Examples
|
|
49
|
-
|
|
50
|
-
### Crop a region from an image
|
|
51
|
-
|
|
52
|
-
```robinpath
|
|
53
|
-
image.crop "./photo.jpg" "./cropped.jpg" {"left": 10, "top": 10, "width": 200, "height": 200}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Convert image format (png, jpeg, webp, avif)
|
|
57
|
-
|
|
58
|
-
```robinpath
|
|
59
|
-
image.convert "./photo.png" "./photo.webp" "webp" 85
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### Get image metadata
|
|
63
|
-
|
|
64
|
-
```robinpath
|
|
65
|
-
image.metadata "./photo.jpg"
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Integration with RobinPath
|
|
69
|
-
|
|
70
|
-
```typescript
|
|
71
|
-
import { RobinPath } from "@wiredwp/robinpath";
|
|
72
|
-
import Module from "@robinpath/image";
|
|
73
|
-
|
|
74
|
-
const rp = new RobinPath();
|
|
75
|
-
rp.registerModule(Module.name, Module.functions);
|
|
76
|
-
rp.registerModuleMeta(Module.name, Module.functionMetadata);
|
|
77
|
-
|
|
78
|
-
const result = await rp.executeScript(`
|
|
79
|
-
image.crop "./photo.jpg" "./cropped.jpg" {"left": 10, "top": 10, "width": 200, "height": 200}
|
|
80
|
-
`);
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Full API Reference
|
|
84
|
-
|
|
85
|
-
See [MODULE.md](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples.
|
|
86
|
-
|
|
87
|
-
## Related Modules
|
|
88
|
-
|
|
89
|
-
- [`@robinpath/json`](../json) — JSON module for complementary functionality
|
|
90
|
-
|
|
91
|
-
## License
|
|
92
|
-
|
|
93
|
-
MIT
|
|
1
|
+
# @robinpath/image
|
|
2
|
+
|
|
3
|
+
> Image processing with Sharp: resize, crop, convert, rotate, flip, grayscale, blur, composite/watermark, and thumbnails
|
|
4
|
+
|
|
5
|
+
   
|
|
6
|
+
|
|
7
|
+
## Why use this module?
|
|
8
|
+
|
|
9
|
+
The `image` module lets you:
|
|
10
|
+
|
|
11
|
+
- Resize an image
|
|
12
|
+
- Crop a region from an image
|
|
13
|
+
- Convert image format (png, jpeg, webp, avif)
|
|
14
|
+
- Get image metadata
|
|
15
|
+
- Rotate an image
|
|
16
|
+
|
|
17
|
+
All functions are callable directly from RobinPath scripts with a simple, consistent API.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @robinpath/image
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
No credentials needed — start using it right away:
|
|
28
|
+
|
|
29
|
+
```robinpath
|
|
30
|
+
image.crop "./photo.jpg" "./cropped.jpg" {"left": 10, "top": 10, "width": 200, "height": 200}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Available Functions
|
|
34
|
+
|
|
35
|
+
| Function | Description |
|
|
36
|
+
|----------|-------------|
|
|
37
|
+
| `image.resize` | Resize an image |
|
|
38
|
+
| `image.crop` | Crop a region from an image |
|
|
39
|
+
| `image.convert` | Convert image format (png, jpeg, webp, avif) |
|
|
40
|
+
| `image.metadata` | Get image metadata |
|
|
41
|
+
| `image.rotate` | Rotate an image |
|
|
42
|
+
| `image.flip` | Flip an image vertically or horizontally |
|
|
43
|
+
| `image.grayscale` | Convert to grayscale |
|
|
44
|
+
| `image.blur` | Apply Gaussian blur |
|
|
45
|
+
| `image.composite` | Overlay one image on top of another (watermark) |
|
|
46
|
+
| `image.thumbnail` | Generate a square thumbnail |
|
|
47
|
+
|
|
48
|
+
## Examples
|
|
49
|
+
|
|
50
|
+
### Crop a region from an image
|
|
51
|
+
|
|
52
|
+
```robinpath
|
|
53
|
+
image.crop "./photo.jpg" "./cropped.jpg" {"left": 10, "top": 10, "width": 200, "height": 200}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Convert image format (png, jpeg, webp, avif)
|
|
57
|
+
|
|
58
|
+
```robinpath
|
|
59
|
+
image.convert "./photo.png" "./photo.webp" "webp" 85
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Get image metadata
|
|
63
|
+
|
|
64
|
+
```robinpath
|
|
65
|
+
image.metadata "./photo.jpg"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Integration with RobinPath
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import { RobinPath } from "@wiredwp/robinpath";
|
|
72
|
+
import Module from "@robinpath/image";
|
|
73
|
+
|
|
74
|
+
const rp = new RobinPath();
|
|
75
|
+
rp.registerModule(Module.name, Module.functions);
|
|
76
|
+
rp.registerModuleMeta(Module.name, Module.functionMetadata);
|
|
77
|
+
|
|
78
|
+
const result = await rp.executeScript(`
|
|
79
|
+
image.crop "./photo.jpg" "./cropped.jpg" {"left": 10, "top": 10, "width": 200, "height": 200}
|
|
80
|
+
`);
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Full API Reference
|
|
84
|
+
|
|
85
|
+
See [MODULE.md](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples.
|
|
86
|
+
|
|
87
|
+
## Related Modules
|
|
88
|
+
|
|
89
|
+
- [`@robinpath/json`](../json) — JSON module for complementary functionality
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,15 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robinpath/image",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Image processing: resize, crop, convert, watermark, and metadata",
|
|
5
|
-
"publishConfig": {
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
6
8
|
"type": "module",
|
|
7
9
|
"main": "dist/index.js",
|
|
8
10
|
"types": "dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc",
|
|
22
|
+
"test": "node --import tsx --test tests/*.test.ts"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@robinpath/core": ">=0.20.0"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"sharp": "^0.33.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@robinpath/core": "^0.30.1",
|
|
32
|
+
"tsx": "^4.19.0",
|
|
33
|
+
"typescript": "^5.6.0"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"image",
|
|
37
|
+
"other"
|
|
38
|
+
],
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"robinpath": {
|
|
41
|
+
"category": "other",
|
|
42
|
+
"type": "utility",
|
|
43
|
+
"auth": "none",
|
|
44
|
+
"functionCount": 10,
|
|
45
|
+
"runtime": "node",
|
|
46
|
+
"runtimeReason": "Requires sharp (native binary — libvips)"
|
|
47
|
+
}
|
|
15
48
|
}
|
package/dist/image.d.ts
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import type { BuiltinHandler } from "@wiredwp/robinpath";
|
|
2
|
-
export declare const ImageFunctions: Record<string, BuiltinHandler>;
|
|
3
|
-
export declare const ImageFunctionMetadata: {
|
|
4
|
-
resize: {
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
name: string;
|
|
8
|
-
dataType: string;
|
|
9
|
-
description: string;
|
|
10
|
-
formInputType: string;
|
|
11
|
-
required: boolean;
|
|
12
|
-
}[];
|
|
13
|
-
returnType: string;
|
|
14
|
-
returnDescription: string;
|
|
15
|
-
example: string;
|
|
16
|
-
};
|
|
17
|
-
crop: {
|
|
18
|
-
description: string;
|
|
19
|
-
parameters: {
|
|
20
|
-
name: string;
|
|
21
|
-
dataType: string;
|
|
22
|
-
description: string;
|
|
23
|
-
formInputType: string;
|
|
24
|
-
required: boolean;
|
|
25
|
-
}[];
|
|
26
|
-
returnType: string;
|
|
27
|
-
returnDescription: string;
|
|
28
|
-
example: string;
|
|
29
|
-
};
|
|
30
|
-
convert: {
|
|
31
|
-
description: string;
|
|
32
|
-
parameters: {
|
|
33
|
-
name: string;
|
|
34
|
-
dataType: string;
|
|
35
|
-
description: string;
|
|
36
|
-
formInputType: string;
|
|
37
|
-
required: boolean;
|
|
38
|
-
}[];
|
|
39
|
-
returnType: string;
|
|
40
|
-
returnDescription: string;
|
|
41
|
-
example: string;
|
|
42
|
-
};
|
|
43
|
-
metadata: {
|
|
44
|
-
description: string;
|
|
45
|
-
parameters: {
|
|
46
|
-
name: string;
|
|
47
|
-
dataType: string;
|
|
48
|
-
description: string;
|
|
49
|
-
formInputType: string;
|
|
50
|
-
required: boolean;
|
|
51
|
-
}[];
|
|
52
|
-
returnType: string;
|
|
53
|
-
returnDescription: string;
|
|
54
|
-
example: string;
|
|
55
|
-
};
|
|
56
|
-
rotate: {
|
|
57
|
-
description: string;
|
|
58
|
-
parameters: {
|
|
59
|
-
name: string;
|
|
60
|
-
dataType: string;
|
|
61
|
-
description: string;
|
|
62
|
-
formInputType: string;
|
|
63
|
-
required: boolean;
|
|
64
|
-
}[];
|
|
65
|
-
returnType: string;
|
|
66
|
-
returnDescription: string;
|
|
67
|
-
example: string;
|
|
68
|
-
};
|
|
69
|
-
flip: {
|
|
70
|
-
description: string;
|
|
71
|
-
parameters: {
|
|
72
|
-
name: string;
|
|
73
|
-
dataType: string;
|
|
74
|
-
description: string;
|
|
75
|
-
formInputType: string;
|
|
76
|
-
required: boolean;
|
|
77
|
-
}[];
|
|
78
|
-
returnType: string;
|
|
79
|
-
returnDescription: string;
|
|
80
|
-
example: string;
|
|
81
|
-
};
|
|
82
|
-
grayscale: {
|
|
83
|
-
description: string;
|
|
84
|
-
parameters: {
|
|
85
|
-
name: string;
|
|
86
|
-
dataType: string;
|
|
87
|
-
description: string;
|
|
88
|
-
formInputType: string;
|
|
89
|
-
required: boolean;
|
|
90
|
-
}[];
|
|
91
|
-
returnType: string;
|
|
92
|
-
returnDescription: string;
|
|
93
|
-
example: string;
|
|
94
|
-
};
|
|
95
|
-
blur: {
|
|
96
|
-
description: string;
|
|
97
|
-
parameters: {
|
|
98
|
-
name: string;
|
|
99
|
-
dataType: string;
|
|
100
|
-
description: string;
|
|
101
|
-
formInputType: string;
|
|
102
|
-
required: boolean;
|
|
103
|
-
}[];
|
|
104
|
-
returnType: string;
|
|
105
|
-
returnDescription: string;
|
|
106
|
-
example: string;
|
|
107
|
-
};
|
|
108
|
-
composite: {
|
|
109
|
-
description: string;
|
|
110
|
-
parameters: {
|
|
111
|
-
name: string;
|
|
112
|
-
dataType: string;
|
|
113
|
-
description: string;
|
|
114
|
-
formInputType: string;
|
|
115
|
-
required: boolean;
|
|
116
|
-
}[];
|
|
117
|
-
returnType: string;
|
|
118
|
-
returnDescription: string;
|
|
119
|
-
example: string;
|
|
120
|
-
};
|
|
121
|
-
thumbnail: {
|
|
122
|
-
description: string;
|
|
123
|
-
parameters: {
|
|
124
|
-
name: string;
|
|
125
|
-
dataType: string;
|
|
126
|
-
description: string;
|
|
127
|
-
formInputType: string;
|
|
128
|
-
required: boolean;
|
|
129
|
-
}[];
|
|
130
|
-
returnType: string;
|
|
131
|
-
returnDescription: string;
|
|
132
|
-
example: string;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
export declare const ImageModuleMetadata: {
|
|
136
|
-
description: string;
|
|
137
|
-
methods: string[];
|
|
138
|
-
};
|
|
139
|
-
//# sourceMappingURL=image.d.ts.map
|
package/dist/image.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../src/image.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAA2C,MAAM,oBAAoB,CAAC;AA6FlG,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAA4F,CAAC;AAEvJ,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWjC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC"}
|
package/dist/image.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import sharp from "sharp";
|
|
2
|
-
const resize = async (args) => {
|
|
3
|
-
const input = String(args[0] ?? "");
|
|
4
|
-
const output = String(args[1] ?? "");
|
|
5
|
-
const opts = (typeof args[2] === "object" && args[2] !== null ? args[2] : {});
|
|
6
|
-
const width = opts.width ? Number(opts.width) : undefined;
|
|
7
|
-
const height = opts.height ? Number(opts.height) : undefined;
|
|
8
|
-
const fit = String(opts.fit ?? "cover");
|
|
9
|
-
await sharp(input).resize(width, height, { fit }).toFile(output);
|
|
10
|
-
return { path: output, width, height };
|
|
11
|
-
};
|
|
12
|
-
const crop = async (args) => {
|
|
13
|
-
const input = String(args[0] ?? "");
|
|
14
|
-
const output = String(args[1] ?? "");
|
|
15
|
-
const opts = (typeof args[2] === "object" && args[2] !== null ? args[2] : {});
|
|
16
|
-
await sharp(input).extract({ left: Number(opts.left ?? 0), top: Number(opts.top ?? 0), width: Number(opts.width ?? 100), height: Number(opts.height ?? 100) }).toFile(output);
|
|
17
|
-
return { path: output };
|
|
18
|
-
};
|
|
19
|
-
const convert = async (args) => {
|
|
20
|
-
const input = String(args[0] ?? "");
|
|
21
|
-
const output = String(args[1] ?? "");
|
|
22
|
-
const format = String(args[2] ?? "png");
|
|
23
|
-
const quality = args[3] != null ? Number(args[3]) : undefined;
|
|
24
|
-
let pipeline = sharp(input);
|
|
25
|
-
if (format === "jpeg" || format === "jpg")
|
|
26
|
-
pipeline = pipeline.jpeg({ quality: quality ?? 80 });
|
|
27
|
-
else if (format === "png")
|
|
28
|
-
pipeline = pipeline.png();
|
|
29
|
-
else if (format === "webp")
|
|
30
|
-
pipeline = pipeline.webp({ quality: quality ?? 80 });
|
|
31
|
-
else if (format === "avif")
|
|
32
|
-
pipeline = pipeline.avif({ quality: quality ?? 50 });
|
|
33
|
-
await pipeline.toFile(output);
|
|
34
|
-
return { path: output, format };
|
|
35
|
-
};
|
|
36
|
-
const metadata = async (args) => {
|
|
37
|
-
const input = String(args[0] ?? "");
|
|
38
|
-
const meta = await sharp(input).metadata();
|
|
39
|
-
return { width: meta.width, height: meta.height, format: meta.format, channels: meta.channels, space: meta.space, size: meta.size, hasAlpha: meta.hasAlpha, density: meta.density };
|
|
40
|
-
};
|
|
41
|
-
const rotate = async (args) => {
|
|
42
|
-
const input = String(args[0] ?? "");
|
|
43
|
-
const output = String(args[1] ?? "");
|
|
44
|
-
const angle = Number(args[2] ?? 90);
|
|
45
|
-
await sharp(input).rotate(angle).toFile(output);
|
|
46
|
-
return { path: output, angle };
|
|
47
|
-
};
|
|
48
|
-
const flip = async (args) => {
|
|
49
|
-
const input = String(args[0] ?? "");
|
|
50
|
-
const output = String(args[1] ?? "");
|
|
51
|
-
const direction = String(args[2] ?? "vertical");
|
|
52
|
-
let pipeline = sharp(input);
|
|
53
|
-
if (direction === "horizontal")
|
|
54
|
-
pipeline = pipeline.flop();
|
|
55
|
-
else
|
|
56
|
-
pipeline = pipeline.flip();
|
|
57
|
-
await pipeline.toFile(output);
|
|
58
|
-
return { path: output };
|
|
59
|
-
};
|
|
60
|
-
const grayscale = async (args) => {
|
|
61
|
-
const input = String(args[0] ?? "");
|
|
62
|
-
const output = String(args[1] ?? "");
|
|
63
|
-
await sharp(input).grayscale().toFile(output);
|
|
64
|
-
return { path: output };
|
|
65
|
-
};
|
|
66
|
-
const blur = async (args) => {
|
|
67
|
-
const input = String(args[0] ?? "");
|
|
68
|
-
const output = String(args[1] ?? "");
|
|
69
|
-
const sigma = Number(args[2] ?? 3);
|
|
70
|
-
await sharp(input).blur(sigma).toFile(output);
|
|
71
|
-
return { path: output };
|
|
72
|
-
};
|
|
73
|
-
const composite = async (args) => {
|
|
74
|
-
const input = String(args[0] ?? "");
|
|
75
|
-
const overlay = String(args[1] ?? "");
|
|
76
|
-
const output = String(args[2] ?? "");
|
|
77
|
-
const opts = (typeof args[3] === "object" && args[3] !== null ? args[3] : {});
|
|
78
|
-
await sharp(input).composite([{ input: overlay, top: Number(opts.top ?? 0), left: Number(opts.left ?? 0), gravity: String(opts.gravity ?? "northwest") }]).toFile(output);
|
|
79
|
-
return { path: output };
|
|
80
|
-
};
|
|
81
|
-
const thumbnail = async (args) => {
|
|
82
|
-
const input = String(args[0] ?? "");
|
|
83
|
-
const output = String(args[1] ?? "");
|
|
84
|
-
const size = Number(args[2] ?? 200);
|
|
85
|
-
await sharp(input).resize(size, size, { fit: "cover" }).toFile(output);
|
|
86
|
-
return { path: output, size };
|
|
87
|
-
};
|
|
88
|
-
export const ImageFunctions = { resize, crop, convert, metadata, rotate, flip, grayscale, blur, composite, thumbnail };
|
|
89
|
-
export const ImageFunctionMetadata = {
|
|
90
|
-
resize: { description: "Resize an image", parameters: [{ name: "input", dataType: "string", description: "Input path", formInputType: "text", required: true }, { name: "output", dataType: "string", description: "Output path", formInputType: "text", required: true }, { name: "options", dataType: "object", description: "{width, height, fit}", formInputType: "text", required: true }], returnType: "object", returnDescription: "{path, width, height}", example: 'image.resize "./photo.jpg" "./thumb.jpg" {"width": 300, "height": 200}' },
|
|
91
|
-
crop: { description: "Crop a region from an image", parameters: [{ name: "input", dataType: "string", description: "Input path", formInputType: "text", required: true }, { name: "output", dataType: "string", description: "Output path", formInputType: "text", required: true }, { name: "options", dataType: "object", description: "{left, top, width, height}", formInputType: "text", required: true }], returnType: "object", returnDescription: "{path}", example: 'image.crop "./photo.jpg" "./cropped.jpg" {"left": 10, "top": 10, "width": 200, "height": 200}' },
|
|
92
|
-
convert: { description: "Convert image format (png, jpeg, webp, avif)", parameters: [{ name: "input", dataType: "string", description: "Input path", formInputType: "text", required: true }, { name: "output", dataType: "string", description: "Output path", formInputType: "text", required: true }, { name: "format", dataType: "string", description: "Target format", formInputType: "text", required: true }, { name: "quality", dataType: "number", description: "Quality 1-100 (optional)", formInputType: "text", required: false }], returnType: "object", returnDescription: "{path, format}", example: 'image.convert "./photo.png" "./photo.webp" "webp" 85' },
|
|
93
|
-
metadata: { description: "Get image metadata", parameters: [{ name: "input", dataType: "string", description: "Input path", formInputType: "text", required: true }], returnType: "object", returnDescription: "{width, height, format, channels, size, hasAlpha}", example: 'image.metadata "./photo.jpg"' },
|
|
94
|
-
rotate: { description: "Rotate an image", parameters: [{ name: "input", dataType: "string", description: "Input path", formInputType: "text", required: true }, { name: "output", dataType: "string", description: "Output path", formInputType: "text", required: true }, { name: "angle", dataType: "number", description: "Rotation angle in degrees", formInputType: "text", required: true }], returnType: "object", returnDescription: "{path, angle}", example: 'image.rotate "./photo.jpg" "./rotated.jpg" 90' },
|
|
95
|
-
flip: { description: "Flip an image vertically or horizontally", parameters: [{ name: "input", dataType: "string", description: "Input path", formInputType: "text", required: true }, { name: "output", dataType: "string", description: "Output path", formInputType: "text", required: true }, { name: "direction", dataType: "string", description: "'vertical' or 'horizontal'", formInputType: "text", required: false }], returnType: "object", returnDescription: "{path}", example: 'image.flip "./photo.jpg" "./flipped.jpg" "horizontal"' },
|
|
96
|
-
grayscale: { description: "Convert to grayscale", parameters: [{ name: "input", dataType: "string", description: "Input path", formInputType: "text", required: true }, { name: "output", dataType: "string", description: "Output path", formInputType: "text", required: true }], returnType: "object", returnDescription: "{path}", example: 'image.grayscale "./photo.jpg" "./bw.jpg"' },
|
|
97
|
-
blur: { description: "Apply Gaussian blur", parameters: [{ name: "input", dataType: "string", description: "Input path", formInputType: "text", required: true }, { name: "output", dataType: "string", description: "Output path", formInputType: "text", required: true }, { name: "sigma", dataType: "number", description: "Blur sigma (default 3)", formInputType: "text", required: false }], returnType: "object", returnDescription: "{path}", example: 'image.blur "./photo.jpg" "./blurred.jpg" 5' },
|
|
98
|
-
composite: { description: "Overlay one image on top of another (watermark)", parameters: [{ name: "base", dataType: "string", description: "Base image path", formInputType: "text", required: true }, { name: "overlay", dataType: "string", description: "Overlay image path", formInputType: "text", required: true }, { name: "output", dataType: "string", description: "Output path", formInputType: "text", required: true }, { name: "options", dataType: "object", description: "{top, left, gravity}", formInputType: "text", required: false }], returnType: "object", returnDescription: "{path}", example: 'image.composite "./photo.jpg" "./watermark.png" "./result.jpg" {"gravity": "southeast"}' },
|
|
99
|
-
thumbnail: { description: "Generate a square thumbnail", parameters: [{ name: "input", dataType: "string", description: "Input path", formInputType: "text", required: true }, { name: "output", dataType: "string", description: "Output path", formInputType: "text", required: true }, { name: "size", dataType: "number", description: "Size in pixels (default 200)", formInputType: "text", required: false }], returnType: "object", returnDescription: "{path, size}", example: 'image.thumbnail "./photo.jpg" "./thumb.jpg" 150' },
|
|
100
|
-
};
|
|
101
|
-
export const ImageModuleMetadata = {
|
|
102
|
-
description: "Image processing with Sharp: resize, crop, convert, rotate, flip, grayscale, blur, composite/watermark, and thumbnails",
|
|
103
|
-
methods: ["resize", "crop", "convert", "metadata", "rotate", "flip", "grayscale", "blur", "composite", "thumbnail"],
|
|
104
|
-
};
|
|
105
|
-
//# s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AAE,EAAE,WAAW,EAAE,6BAA6B,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,8BAA8B,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE,iDAAiD,EAAE;CAC5gB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,wHAAwH;IACrI,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,CAAC;CACpH,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ModuleAdapter } from "@wiredwp/robinpath";
|
|
2
|
-
declare const ImageModule: ModuleAdapter;
|
|
3
|
-
export default ImageModule;
|
|
4
|
-
export { ImageModule };
|
|
5
|
-
export { ImageFunctions, ImageFunctionMetadata, ImageModuleMetadata } from "./image.js";
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,QAAA,MAAM,WAAW,EAAE,aAAuK,CAAC;AAC3L,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ImageFunctions, ImageFunctionMetadata, ImageModuleMetadata } from "./image.js";
|
|
2
|
-
const ImageModule = { name: "image", functions: ImageFunctions, functionMetadata: ImageFunctionMetadata, moduleMetadata: ImageModuleMetadata, global: false };
|
|
3
|
-
export default ImageModule;
|
|
4
|
-
export { ImageModule };
|
|
5
|
-
export { ImageFunctions, ImageFunctionMetadata, ImageModuleMetadata } from "./image.js";
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACxF,MAAM,WAAW,GAAkB,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,qBAA4B,EAAE,cAAc,EAAE,mBAA0B,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AAC3L,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|