diff --git a/pages/index.vue b/pages/index.vue index 94bb75d..504bbef 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1592,6 +1592,14 @@ > Use as input still + + {{ usingReferenceBusy ? 'Loading reference…' : 'Use as reference' }} + (editResultUrl.value, { responseType: 'blob' }) + if (!blob?.size) throw new Error('Empty image') + const reference = new File([blob], `${editDownloadName.value || 'reference'}.png`, { type: blob.type || 'image/png' }) + selectStudioKind('image') + setV2Engine('flux') + resetImage() + v2Mode.value = editPassQueue.value.length ? 'iterate' : 'generate' + setEditRef(reference) + toast('Added to Flux Klein reference photo. Your prompt will generate a new image.') + } catch { + toast('Could not load that image as a reference') + } finally { + usingReferenceBusy.value = false + } +} + async function useEditAsInput() { if (!editResultUrl.value) return const stillId = lastV2StillId.value || stillIdFromLibraryUrl(editResultUrl.value)