Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Civitai] [Feature request] Ability to download and save text prompt together with images #6383

Closed
ura23 opened this issue Oct 27, 2024 · 3 comments

Comments

@ura23
Copy link

ura23 commented Oct 27, 2024

On Civitai many images come with text prompt, used to generate them. Is it possible to add option to download and save in the txt file this prompt? Here is example of image with prompt (SFW): https://civitai.com/images/36675805.

@ura23 ura23 changed the title [Civitai] Ablity to download and save text prompt together with images [Civitai] [Feature request] Ability to download and save text prompt together with images Oct 27, 2024
@mikf
Copy link
Owner

mikf commented Oct 27, 2024

The image's EXIF data contains its prompt among other things.

$ exiftool 36675805.jpg
...
User Comment                    : Create a photorealistic close up image of a Glowing Stained Glass hummingbird, vibrant colors and dark background, highly detailed, aesthetic, great lighting, extremely detailed,  perfect composition, a rich and complex image of nature, a vibrant tissue of hues and textures captured digitally, best quality, realistic, captivating, intricately detailed, hyper detailed, maximalist style, photorealist, sharp focus, dynamic lighting, superb composition, finest details, highest aesthetics, best quality, sharp focus, high contrast, stylized, clear, colorful, ultra quality, 8k, best quality, award winning, masterpiece,midjourneyv6.1.Negative prompt:  deformed, wrong anatomy, bad anatomy.Steps: 14, Sampler: DPM++ 2M Karras, CFG scale: 6.8, Seed: 1096154576, Size: 832x1216, Clip skip: 2, Created Date: 2024-10-25T16:34:29.1740870Z, Civitai resources: [{"type":"checkpoint","modelVersionId":291443,"modelName":"\uD83E\uDD42\uD83C\uDF86SDXL FaeTastic\uD83C\uDF86\uD83E\uDD42","modelVersionName":"v24"},{"type":"lora","weight":1,"modelVersionId":723149,"modelName":"Midjourney V6.1 meets FLUX \uD83D\uDDBC\uFE0F [\u002BSDXL]","modelVersionName":"SDXL"},{"type":"lora","weight":0.8,"modelVersionId":960188,"modelName":"Glowing Stained Glass XL","modelVersionName":"v1.0"},{"type":"embed","modelVersionId":106916,"modelName":"Civitai Safe Helper","modelVersionName":"v1.0"}], Civitai metadata: {}

@ura23
Copy link
Author

ura23 commented Oct 27, 2024

The image's EXIF data contains its prompt among other things.

$ exiftool 36675805.jpg
...
User Comment                    : Create a photorealistic close up image of a Glowing Stained Glass hummingbird, vibrant colors and dark background, highly detailed, aesthetic, great lighting, extremely detailed,  perfect composition, a rich and complex image of nature, a vibrant tissue of hues and textures captured digitally, best quality, realistic, captivating, intricately detailed, hyper detailed, maximalist style, photorealist, sharp focus, dynamic lighting, superb composition, finest details, highest aesthetics, best quality, sharp focus, high contrast, stylized, clear, colorful, ultra quality, 8k, best quality, award winning, masterpiece,midjourneyv6.1.Negative prompt:  deformed, wrong anatomy, bad anatomy.Steps: 14, Sampler: DPM++ 2M Karras, CFG scale: 6.8, Seed: 1096154576, Size: 832x1216, Clip skip: 2, Created Date: 2024-10-25T16:34:29.1740870Z, Civitai resources: [{"type":"checkpoint","modelVersionId":291443,"modelName":"\uD83E\uDD42\uD83C\uDF86SDXL FaeTastic\uD83C\uDF86\uD83E\uDD42","modelVersionName":"v24"},{"type":"lora","weight":1,"modelVersionId":723149,"modelName":"Midjourney V6.1 meets FLUX \uD83D\uDDBC\uFE0F [\u002BSDXL]","modelVersionName":"SDXL"},{"type":"lora","weight":0.8,"modelVersionId":960188,"modelName":"Glowing Stained Glass XL","modelVersionName":"v1.0"},{"type":"embed","modelVersionId":106916,"modelName":"Civitai Safe Helper","modelVersionName":"v1.0"}], Civitai metadata: {}

Yes, you are right. I tried but unfortunately not all images downloads as png and even not all png images contain prompt information even if it is displayed on the civitai site. I used civitai API before, and it was fine but now imageid from api/v1/images is broken unfortunately.

mikf added a commit that referenced this issue Oct 27, 2024
@mikf
Copy link
Owner

mikf commented Oct 27, 2024

With 6693ae1, -o metadata=1 will fetch generation metadata including prompt and negativePrompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants