charmbracelet / charmbracelet/x

feat(mosaic): option to maintain aspect ratio of image

Open
#475 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
314
Forks
94
Avg merge
3d 22h
Merged PRs (30d)
2

Description

it would be great to get the aspect ratio of the image so you can set a width and it will use an appropriate height. Right now it goes a little crazy if both height AND width are not set.

Contributor guide

Open the contributing guide

Research direction

The issue identifies the mosaic image-sizing behavior but names no file or test; start by locating the mosaic implementation and how it handles image width and height. The change is done when setting only a width derives an appropriate height from the image aspect ratio without the current sizing behavior becoming unstable.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.