Skip to content

Commit 3709472

Browse files
authored
Merge pull request #352 from devforth/docsBulkAiFlow
docs: update docs for bulk-ai-flow
2 parents e63bf6c + 7bccfbc commit 3709472

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

adminforth/documentation/docs/tutorial/07-Plugins/17-bulk-ai-flow.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,4 +311,24 @@ new BulkAiFlowPlugin({
311311
```
312312
313313
- Consider using lower resolution (`512x512`) for faster generation and lower costs
314-
- Test prompts thoroughly before applying to large datasets
314+
- Test prompts thoroughly before applying to large datasets
315+
316+
## Comparing new and old images
317+
318+
If you want to compare a generated image with an image stored in your storage, you need to add the preview prop in your upload plugin setup:
319+
320+
```ts
321+
new UploadPlugin({
322+
...
323+
//diff-add
324+
preview: {
325+
//diff-add
326+
previewUrl: ({filePath}) => `https://static.my-domain.com/${filePath}`,
327+
//diff-add
328+
}
329+
...
330+
})
331+
```
332+
After generation, you’ll see a button labeled "old image". Clicking it will open a pop-up where you can compare the generated image with the stored one:
333+
334+
![alt text](Bulk-vision-4.png)
532 KB
Loading

0 commit comments

Comments
 (0)