Skip to content

Conversation

fieldOfView
Copy link
Contributor

Summary

This PR adds a get_path method to the invocation context, so that nodes can access local files.

Access to the local image path can be useful for nodes that need access to the image file for further processing with external tools (instead of directly dealing with the PIL pixel data).

Related Issues / Discussions

Fixes #6175
/sa https://discord.com/channels/1020123559063990373/1049495067846524939/1226635058299797666

QA Instructions

Merge Plan

This PR only adds a new method and does not change any existing code.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

Copy link
Collaborator

@psychedelicious psychedelicious left a comment

Choose a reason for hiding this comment

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

Thanks!

@psychedelicious psychedelicious merged commit dca30d5 into invoke-ai:main Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python PRs that change python files services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[enhancement]: add a method to get the path of an image from the invocation context
2 participants