automosaic:0.1.0 - #5502
Merged
Merged
Conversation
Aspect-ratio-preserving grid layouts for photo mosaics, with automatic layout search.
Fixes the import/relative warning from typst-package-check.
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.
I am submitting
Description: automosaic lays out grids of images (or arbitrary content) that fill an available box while preserving every element's own aspect ratio and keeping uniform gaps. A layout is a nested tree of alternating horizontal/vertical splits: build the tree yourself with
display-content-tree, or handdisplay-auto-layouta flat list of (optionally weighted) items and let it search every possible tree structure for the one whose rendered areas best match the given weights. It's useful for photo mosaics, galleries, and any multi-image layout where you don't want to hand-compute cell sizes for a set of images with mixed aspect ratios.I have read and followed the submission guidelines and, in particular, I
"automosaic" is a coined portmanteau of "auto" (the automatic tree-arrangement search that
display-auto-layoutperforms) and "mosaic" (the photo-grid domain), not a term anyone would use to literally describe the feature set (e.g. "aspect-ratio-grid-layout"). It's also distinct from the existingtesserapackage, which covers masonry/matrix grid layouts but not tree-based layouts or automatic arrangement search.typst.tomlfile with all required keysREADME.mdwith documentation for my packageLICENSEfile or linked one in myREADME.mdexcluded PDFs or README images, if any, but not the LICENSE