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

Update smartprocess.py #30

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

james-things
Copy link

@james-things james-things commented Feb 10, 2023

I went to use the padding function and it didn't work for me, so I did some digging and it looks like the padding functionality was broken by the following commit:

1def06d#diff-d56db42c60f8fc9165345312bcb110d898f38738e8206e548039e86b9b3245fd

It appears that the original issue was unintentional padding when not selecting "pad" in the UI, however I believe the intended solution was to indent lines 377-340, rather than 325-350 which ended up in the commit. The current state of the code is such that "pad" can only be reached within "crop." I have adjusted the indentation to restore padding without bringing back the original issue; I believe the unintentional padding was caused by 377-340 not being indented, so there was no conditional checking the "if not cropped properly, crop again" catch there.

Addresses issue: #27 as well :)

change indentation to restore pad functionality
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.

1 participant