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

Interpolation affects Location of Crop #600

Open
PlayCulture opened this issue Dec 22, 2023 · 0 comments
Open

Interpolation affects Location of Crop #600

PlayCulture opened this issue Dec 22, 2023 · 0 comments

Comments

@PlayCulture
Copy link

I noticed that using anything other than Interpolation.nearest affects the output crop when using copyResizeCropSquare. I assume this also affects other crop methods.

This is solvable by editing copy_resize_crop_square.dart around line 125 and changing:

final y = p.y * dy;

to

final y = (p.y + yOffset) * dy;

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

No branches or pull requests

1 participant