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

Script-Fu: update to GIMP3-compatible implementation #96

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

Conversation

jayaddison
Copy link
Contributor

  • Remove implicit SIOD array accesses
  • Migrate removed drawable API calls to item equivalents
  • Introduce TinyScheme vector-ref and vector-length calls
  • Migrate from get-active-layer to get-selected-layers
  • Call file-png-export (instead of save) with named arguments

These changes, in combination with #95 and some additional prerequisite install dependencies, allow me to use Debian testing (trixie) to rebuild what appear naively to be very similar (but not identical) PNG output images to those shipped in Debian stable (bookworm).

Despite the function call update during its declaration, the visibleStuff variable is no longer provided as an argument to the PNG save/export step, and I'm not sure yet whether that could imply some unintended difference-in-output (transparency, for example?). Hence opening this pull request using draft status.

cc @matthijskooijman

 * Remove implicit SIOD array accesses[1]
 * Migrate removed `drawable` API calls to `item` equivalents
 * Introduce TinyScheme `vector-ref` and `vector-length` calls
 * Migrate[2] from `get-active-layer` to `get-selected-layers`
 * Call `file-png-export` (instead of `save`) with named arguments

Refs:
 - [1] https://www.gimp.org/docs/script-fu-update.html#carempty
 - [2] https://samjcreations.blogspot.com/2022/08/api-gimp-29912-script-fu.html
@jayaddison jayaddison marked this pull request as ready for review March 3, 2025 19:48
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