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

Issue with crop()'s offsets (appear to be applying twice?) #16

Open
CajunAvenger opened this issue May 3, 2020 · 0 comments
Open

Issue with crop()'s offsets (appear to be applying twice?) #16

CajunAvenger opened this issue May 3, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@CajunAvenger
Copy link

A few weeks back, I had made a system to allow for dynamic leveler frames using the built-in crop() function. The idea was to use a script like crop(height:50, offset_y:100, offset_x:0, height:314) to get the bottom 50px of a 150px image, but instead a completely blank image was returned.

From testing with a few numbers, it appears it may be applying the offset, cropping, then applying the offset again, or possibly cropping it a second time based off the offset. Image with some console tests

I am currently working around this issue with a function that crops the image to the bottom of the wanted slice, flips it upside down, crops to the top of the wanted slice, then flips it back.

@twanvl twanvl added the bug Something isn't working label May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants