Add feature: predefined-art-position #15
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of this pull request?
I do not expect this to be merged into main "as is" (or necessarily in any form), as this is very much a minimum viable product kind of thing. I made zero effort to make the code look neat or match the design patterns of the overall proxyshop codebase (for laziness reasons). I'm creating this Pull Request purely in the spirit of sharing code that might benefit others.
How does this feature work?
This makes it so that any adjustments one makes to the art layer while in "Manual Edit Mode" get automatically recorded and saved to a csv so that Proxyshop remembers the art position next time a card is rendered with the same template and art with same filename.
This means that if the same card is rendered again using art with a different filename, then it will not use those values stored in the csv. (Unless of course you tell it to 'remember' these ones as well). This is intentional, so as to allow the existence of any number of art variations (upscaled, crop variations, content-aware-filled, etc.) most of which will likely require different positioning.
Instructions for use:
filename, x, y, w, h
and the name of this csv file must be the same as the name of the template's psd file, with.csv
instead of.psd
. Example:masterpiece.csv
predefined-art-positions
which is placed in theart
folderCredit to @preshtildeath for ideas and guidance