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

Decreased size of downsampled image #1528

Closed
wants to merge 1 commit into from

Conversation

Rylern
Copy link
Contributor

@Rylern Rylern commented May 22, 2024

A proposal to fix #1527. It simply consists in reducing the size of the downsampled image by rounding down its width and height, instead of rounding it.

@petebankhead
Copy link
Member

It's tempting, but it feels risky. The choice of round and floor when converting pixel coordinates has been problematic in the past, e.g. see #1072 (comment)

I'm not 100% sure, but I think switching this behavior could break or confuse other things whenever we want to try to ensure we obtain a consistent image size.

@Rylern
Copy link
Contributor Author

Rylern commented May 22, 2024

OK I see

@Rylern
Copy link
Contributor Author

Rylern commented May 22, 2024

I will close this PR then. I don't see any other easy fix

@Rylern Rylern closed this May 23, 2024
@Rylern Rylern deleted the black-pixels-fix branch May 23, 2024 08:39
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.

Black row or column appears on some downsampled images
2 participants