You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,20 @@ This is the source code repository for the documentation of [image-js](https://g
4
4
5
5
The documentation is available on <https://docs.image-js.org/>.
6
6
7
+
## Generating demo images
8
+
9
+
To regenerate the demo images (only needed when adding/updating images):
10
+
11
+
```bash
12
+
npm run generate-images
13
+
```
14
+
15
+
This will:
16
+
17
+
- Fetch images from the URLs defined in `defaultImageUrls.ts`
18
+
- Save them to the `static/` folder
19
+
- Generate `imageData.json` with metadata
20
+
7
21
## Create demos
8
22
9
23
A demo is simply a function which takes an image or mask as input and returns an image or mask as output. When imported in `md` files, it will be transformed into a demo component which allows choosing from various image or video sources to showcase the image transformation.
0 commit comments