10000 Fix grayscale on sub-images by leizor · Pull Request #4 · Ernyoke/Imger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix grayscale on sub-images #4

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

Merged
merged 1 commit into from
Feb 10, 2024
Merged

Conversation

leizor
Copy link
Contributor
@leizor leizor commented Feb 2, 2024

Hello!

I noticed that calling grayscale.Grayscale (and grayscale.Grayscale16) on sub-images didn't output image I'd expect.

I added new acceptance tests that call the grayscale methods on a cropped image. Before this change, it outputted this:

Screenshot 2024-02-01 at 10 26 48 PM

After the change, it outputs this:

Screenshot 2024-02-01 at 10 27 01 PM

I suspect this might be a wider problem but I thought I'd get some validation that this is the right thing to do before proceeding further.

@leizor leizor force-pushed the leizor/fix-grayscale branch from 9830e1d to b3485a7 Compare February 3, 2024 03:38
Copy link
Owner
@Ernyoke Ernyoke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix!

Keep up the good work👍

@Ernyoke Ernyoke merged commit d5d9042 into Ernyoke:main Feb 10, 2024
@leizor leizor deleted the leizor/fix-grayscale branch February 18, 2024 04:58
@leizor leizor mentioned this pull request Jul 26, 2024
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.

2 participants
0