mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
1) Downgrade numpy to avoid dependency conflict with numba 2) Move all non ldm/invoke files into `invokeai`. This includes assets, backend, frontend, and configs. 3) Fix up way that the backend finds the frontend and the generator finds the NSFW caution.png icon.
22 lines
448 B
TypeScript
22 lines
448 B
TypeScript
type Base64AndCaption = {
|
|
base64: string;
|
|
caption: string;
|
|
};
|
|
|
|
const openBase64ImageInTab = (images: Base64AndCaption[]) => {
|
|
const w = window.open('');
|
|
if (!w) return;
|
|
|
|
images.forEach((i) => {
|
|
const image = new Image();
|
|
image.src = i.base64;
|
|
|
|
w.document.write(i.caption);
|
|
w.document.write('</br>');
|
|
w.document.write(image.outerHTML);
|
|
w.document.write('</br></br>');
|
|
});
|
|
};
|
|
|
|
export default openBase64ImageInTab;
|