feat: ai
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
import Toast from "../components/Toast";
|
||||
import Analyzer from "../components/Analyzer.svelte";
|
||||
import { onMount } from "svelte";
|
||||
import ToastWrapper from "components/Toast/ToastWrapper.svelte";
|
||||
|
||||
const imageStore: Writable<Image[]> = imageData.store;
|
||||
|
||||
@ -59,7 +60,6 @@
|
||||
showAnalyzerIndex = undefined;
|
||||
} else {
|
||||
showAnalyzerIndex = i;
|
||||
//AI.analyze(img);
|
||||
}
|
||||
} else {
|
||||
showAnalyzerIndex = undefined;
|
||||
@ -70,7 +70,11 @@
|
||||
<button on:click={() => route.set("editor/" + img.id)}>edit</button>
|
||||
<button
|
||||
on:click={() => {
|
||||
downloadImage(img);
|
||||
if (img.overlayData && img.overlayData.byteLength) {
|
||||
downloadImage(img);
|
||||
} else {
|
||||
Toast.warn("Image has no mask, cant download");
|
||||
}
|
||||
}}>download mask</button
|
||||
>
|
||||
<button
|
||||
|
Reference in New Issue
Block a user