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

Allow adding custom constraints #4

Open
kamilburda opened this issue Feb 2, 2024 · 0 comments
Open

Allow adding custom constraints #4

kamilburda opened this issue Feb 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kamilburda
Copy link
Owner

kamilburda commented Feb 2, 2024

The GIMP PDB contains many procedures returning value(s), such as obtaining layer dimensions, whether the layer has an alpha channel, etc. This information could potentially be used as custom constraints, e.g. "layer width is less than 500 pixels". Generally speaking, the custom constraints should support operators applied on the procedure return values (equals, less than, greater than, etc.).

For greater flexibility, placeholders should be supported as described in #2.

The problem with supporting custom constraints is the fact that some plug-ins which modify layers destructively may also return values, meaning such constraints act like procedures when they are not meant to.

Additionally, it could be useful sometimes to combine multiple constraints (built-in or custom) with "OR" or "AND" operators of sorts, to create constraints like "layer width is less than 500 pixels OR layer height is less than 500 pixels".

@kamilburda kamilburda added the enhancement New feature or request label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant