Skip to content

Conversation

@JPPhoto
Copy link
Contributor

@JPPhoto JPPhoto commented Aug 6, 2023

Hue adjustment wasn't working correctly because color channels got swapped. This has now been fixed.

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Have you discussed this change with the InvokeAI team?

  • Yes
  • No, because:

Have you updated all relevant documentation?

  • Yes
  • No; N/A

Description

The image resulting from a hue shift had discontinuities in color. This was a result of color channels being swapped prior to the conversion to/from HSV. This PR fixes the problem.

Related Tickets & Documents

  • Related Issue #
  • Closes #

QA Instructions, Screenshots, Recordings

Added/updated tests?

  • Yes
  • No : I tested this manually with images, comparing results to Photoshop.

[optional] Are there any post deployment tasks we need to perform?

Hue adjustment wasn't working correctly because color channels got swapped. This has now been fixed.
@JPPhoto
Copy link
Contributor Author

JPPhoto commented Aug 6, 2023

This PR also changes the values from 0..180 to the typical 0..360 that image editing programs use.

@JPPhoto JPPhoto enabled auto-merge (squash) August 6, 2023 23:12
@JPPhoto JPPhoto merged commit ae17d01 into main Aug 6, 2023
@JPPhoto JPPhoto deleted the JPPhoto-fix-imagehueadjustmentinvocation branch August 6, 2023 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants