Sign In

Img2img: Use the configuration of one generation but the image of another (yours or not)

Img2img: Use the configuration of one generation but the image of another (yours or not)

In the Site Generator you can ask for img2img. It will copy generation configuration to generator form and image to origin image of the generator.
Here explain how to change this origin image by another.

1/ Open a post with images created with Civitai generator (little yellow triangle at bottom right of the image in list)

Example : https://civitai.com/posts/7910931

2/ Right click on the image then open image in new tab

For example the url is https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/9996ee2f-5419-4c6d-8362-6b1451431014/width=700,original=false,optimized=true/7AM9HGNQV8AZ3E3NEE2DHJ2GZ0.jpeg

3/ Select the name or id without the extension at the image a the end of the URL

If the id has this format it should work, if not it will not work for sure : 7AM9HGNQV8AZ3E3NEE2DHJ2GZ0

4/ Open the on-site civitai generator and ask for a img2img from the generation queue

5/ Open the console of your browser (keybord : F12)

Select this code, update the id with the previous found id then copy past to the console en run it

var code = "7AM9HGNQV8AZ3E3NEE2DHJ2GZ0";
var src="https://orchestration.civitai.com/v2/consumer/blobs/" + code;

var generation_form = JSON.parse(localStorage.getItem("generation-form-2")) 

generation_form.state.image = src; localStorage.setItem("generation-form-2", JSON.stringify(generation_form))

6/ In the on-site generator go to tab "queue" or "feed" then back to the tab "generator"

The origin image has changed ๐Ÿค—

Annexe

If you like ๐Ÿคฉ this feature up vote this feature request : https://feedback.civitai.com/fr/u/66097e396d98c7a2eb57a6f6 โœŒ๏ธ๐Ÿ˜‰


Appendix:

If needed, here is the steps to find img2img on on-site generator:

Open generator and goto queue

  1. Clic on the < 3 verticals dots >

  2. Clic on "Variations (img2img)"
    the forn generator has now a ref image at the top right

๐ŸŽLittle extra๐ŸŽ

You can get the generation id of a flux image to use it as origin image for another model. Even is Variation img2img action link is not available for Flux's image, an image file is a image file so it works as origin image.

20

Comments