This commit is contained in:
2021-03-10 15:26:55 +01:00
parent db706e08f5
commit 2a94207c73
8 changed files with 138 additions and 20 deletions

View File

@ -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