Skip to content

Fix numeric array save options being dropped in :memory and stream writes#214

Open
hlindset wants to merge 1 commit into
elixir-image:mainfrom
hlindset:fix/numeric-array-save-options
Open

Fix numeric array save options being dropped in :memory and stream writes#214
hlindset wants to merge 1 commit into
elixir-image:mainfrom
hlindset:fix/numeric-array-save-options

Conversation

@hlindset

@hlindset hlindset commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Numeric array save options (e.g. background: [0, 128, 0]) were silently dropped on :memory and stream writes: the filename suffix string joined arrays with : (.jpg[background=0:128:0]), which libvips ignores. Arrays are now space separated (.jpg[background=0 128 0]). Flag lists like :keep still use :. File-path writes were unaffected (they pass keyword params, not a suffix string). Looks like the option never worked: before the : join it was interpolated as charlist bytes.

Adds regression tests for :memory and stream writes with a :background.

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