Skip to content

Conversation

@Kebolder
Copy link
Contributor

As stated in the #2216 fixed the confusing branches, still wrapping my head around Github entirely with PRs!

Updated the system to use the Krita output node now instead of a entirely different node. Sent a PR on the Tooling nodes to update the Krita output to include the "Width/Height" which are optional

@Kebolder
Copy link
Contributor Author

Updated and remade most of the resizing into the params.resize_canvas as stated. Was setting up the base lines for a system to allow users to "on the fly" preview the sizes based off the jobs in the history, at least originally that was the idea.

@Kebolder
Copy link
Contributor Author

Kebolder commented Dec 11, 2025

Would it be better if we do

Run upscale -> Resizes canvas before applying the job or -> Resize Canvas after applying.

I feel like having the resize happen before we apply it is better for the users end since they can see what it would look like if they dont like it just resize it manually?

@Acly
Copy link
Owner

Acly commented Dec 12, 2025

Run upscale -> Resizes canvas before applying the job or -> Resize Canvas after applying.

Not sure what you mean exactly?

I think resizing for preview is not a good idea, because resize can be slow, and it's destructive (upscale and downscale back to original if you don't like does not restore original image).

Resize on Apply (and possibly undo) is maybe not ideal, but can't think of anything better right now.

Copy link
Owner

@Acly Acly left a comment

Choose a reason for hiding this comment

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

Yea this looks good, I just added a few more comments to simplify the code

.gitignore Outdated
lib
pyvenv.cfg
pyvenv.cfg
release_notes.md
Copy link
Owner

Choose a reason for hiding this comment

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

please revert this change, it doesn't seem related

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad the gitignore was from my personal branch!

if importlib.util.find_spec("krita"):
from .extension import AIToolsExtension as AIToolsExtension
# The following imports depend on the code running inside Krita, so they cannot be imported in tests.
_krita_spec = importlib.util.find_spec("krita")
Copy link
Owner

Choose a reason for hiding this comment

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

this change also doesn't seem related to the PR, and not sure why it's needed

@Kebolder
Copy link
Contributor Author

Will do, some stuff from my experimenting branch leaked over for whatever reason. I'll get back to you once I'm free!

@Kebolder
Copy link
Contributor Author

Kebolder commented Dec 21, 2025

There we go, reverted the odd changes before and used your suggestions to make the code just straight forward rather then using try/finally. If anything else was weird or got accidently changed on this branch let me know.

@Acly Acly merged commit ce3c559 into Acly:main Dec 29, 2025
2 checks passed
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