this post was submitted on 13 Jun 2023
15 points (100.0% liked)

AI Generated Images

7236 readers
130 users here now

Community for AI image generation. Any models are allowed. Creativity is valuable! It is recommended to post the model used for reference, but not a rule.

No explicit violence, gore, or nudity.

This is not a NSFW community although exceptions are sometimes made. Any NSFW posts must be marked as NSFW and may be removed at any moderator's discretion. Any suggestive imagery may be removed at any time.

Refer to https://lemmynsfw.com/ for any NSFW imagery.

No misconduct: Harassment, Abuse or assault, Bullying, Illegal activity, Discrimination, Racism, Trolling, Bigotry.

AI Generated Videos are allowed under the same rules. Photosensitivity warning required for any flashing videos.

To embed images type:

“![](put image url in here)”

Follow all sh.itjust.works rules.


Community Challenge Past Entries

Related communities:

founded 2 years ago
MODERATORS
 

Many AI image generators, including the big UIs for Stable Diffusion, helpfully embed metadata in the images so that you can load them up again and get all the settings you need to regenerate the image.

But Lemmy's built-in pict-rs image hoster, and most image hosters that resize or re-encode images or that try and stop people from doxing themselves with photos' embedded GPS coordinates, will remove all the metadata. This is counter-productive for AI image generation, because part of the point of sharing the images is so other people can build on the prompts.

What are some good places to host images that don't strip metadata?

top 5 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 2 years ago (1 children)

https://git.asonix.dog/asonix/pict-rs

Pictrs has all sorts of settings. Might be worth exploring what could be changed to prevent this and ask the instance admin to adapt the settings.

I am also seeing similar problems with photo rotation not being preserved on upload, which might be nice to find a fix for.

[–] planish 4 points 2 years ago (1 children)

The rotation thing is probably the metadata being stripped too. Instead of encoding the image the right way up or re-encoding if someone rotates, often phones will very quickly "rotate" an image by just adding some metadata saying which way up you should draw it. If the metadata is dropped and the image isn't re-encode the right way up at the same time, then the image goes back to being drawn in whatever orientation it came off the sensor.

[–] [email protected] 2 points 2 years ago

Exactly, this is why I mentioned it :)

[–] god 6 points 2 years ago

I'm 99% sure that imgbb.com doesn't strip metadata. Do test but I tested and it seems it didn't strip it.

[–] themoonisacheese 2 points 2 years ago

Ipfs stores raw files. You can then use an ipfs relay to get an https link to your image to put it in a post. If you disable pinning, the image might get lost as hosters will stop supporting it if nobody ever accesses it, but imo that's a feature.