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

[Feature Request]: Add "Flip Horizontal" Button in the image preview #8419

Closed
1 task done
SeriousM opened this issue Mar 8, 2023 · 5 comments
Closed
1 task done
Labels
enhancement New feature or request

Comments

@SeriousM
Copy link

SeriousM commented Mar 8, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

Like in all artistic programs there should be an option to horizontally flip the image in order to have the flipped experience.
We're all humans (right?) and seeing an image from left or right creates different impressions.
I guess the implementation would be very simple as it requires only to apply a css style to the image tag.

image

I searched all extensions and issues but didn't found this functionality.
The image viewer already offers

  • toggle zoom
  • preview tiling
  • save the image

Proposed workflow

  1. Generate image(s)
  2. open them in the preview
  3. flip the view to change impression to the viewer

Additional information

No response

@hananbeer
Copy link
Contributor

hananbeer commented Mar 9, 2023

very simple version of what you asked. currently it only flips with CSS so any processing still uses the original unflipped image.
currently it only works for outputs in txt2img and img2img tabs.

https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/8527/files

@SeriousM
Copy link
Author

SeriousM commented Mar 9, 2023

thanks @hananbeer for the quick help! should I close the issue now or will the change be merged into master?

@hananbeer
Copy link
Contributor

I hope it's merged but you can leave it open until then.
I'm not git expert and I think I messed the PR I made several unrelated commits into a single PR 😅
if anyone knows how I could split it this will help it get approved

@hananbeer
Copy link
Contributor

hananbeer commented Mar 10, 2023

I just found in the wiki this script which does flip the actual pixels in the image:
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Developing-custom-scripts

it's not via a button but perhaps it will help.

@catboxanon
Copy link
Collaborator

As mentioned in the PR, should be handled as an extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants