Repository navigation
Conversation
Member
|
Please do not use LLMs to generate code or PR descriptions when contributing to libvips: EvidenceThe PR description mentions the use of OpenAI Codex, as confirmed by the audit log: user_agent GitHub CLI 2.102.0 Agent/codexSee also: https://agentscan.tools/user/BSAIPF. |
Member
jcupitt
added a commit
that referenced
this pull request
Oct 21, 2026
also send interpretation into array interfaces thanks BSAIPF see #1429
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Image.new_from_array()dropsinterpretationwhen it falls back to an object's__array__method. For example, a float32 PyTorch RGB tensor withinterpretation='auto'producessrgb, while passing its NumPy array directly producesscrgb. An explicit interpretation such aslabis also ignored.Forward
interpretationthrough the fallback call. Add 15 regression/control cases covering array-only objects, RGB and grayscale data, uint8/uint16/float32, and real PyTorch tensors. The tests also check unchanged pixel values and the default interpretation.Validation on macOS ARM64, Python 3.12.14, libvips 8.18.7 (API mode):
pytest -q -ra: 78 passed, no skips (NumPy, Pillow, SciPy and PyTorch installed).flake8 .passed.mypy pyvips/*.pyi --no-error-summaryandmypy examples/*.py --no-error-summary.git diff --checkpassed.Prepared with Codex assistance.