Skip to content

Conversation

@197g
Copy link
Contributor

@197g 197g commented Dec 9, 2025

Due to the filepath processing this was more complex than it seems at first. I think we'd want to eat the complexity of a new ArgParseCtx type now rather than later (see commit message). The testing is an integration test.

This is stacked on #76 since it only becomes possible with proper sequence support.

I'm refusing the temptation to extend imagemagick with this PR but if we'd want to provide use of ExecutionPlan as a library or even do unit testing then a special Location that writes to a pool of images could also be neat. We should also have the capabilities for output into null:- (which does not write at all) and fd:1 as explained in STDIN, STDOUT, and file descriptors.

Feel free to review at your own pace if you want to prioritize operations.

197g added 2 commits December 17, 2025 22:42
This parses its argument like the output file. Since that parsing
depends on the filesystem we rig up a new context type which ensures the
whole system can stay flexible. Note that image-magick also contains a
few builtin options like input of patterns and built-in images. We'd
presumably load these from bundled files in an install which again are
part of a context. Finally, context could also provide acceleration
capabilities (including SPIR-V code).
@197g
Copy link
Contributor Author

197g commented Dec 18, 2025

I've been sketching -adjoin writes (i.e. multiple frames into a single file in an animated format or a container, avif, tif, webp, gif) here: main...image-rs:wondermagick:sequenced-adjoin-writes

This will need better support in image if we are to do it through the library. That work is ongoing here: https://github.com/image-rs/image/tree/encoder-metadata-interface but since it's supposed to share some of its metadata with the decoder side for ergonomics reasons (or at least structs that are convertible) that itself is somewhat blocked on image-rs/image#2672.

Just fyi.

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