Fit placeholder images with their aspect ratio #94
No reviewers
Labels
No labels
Area/ci
Area/cli
Area/client
Area/client-core
Area/daemon
Area/deps
Area/docs
Area/grid
Area/manual
Area/nix
Area/protocol
Area/pty
Area/render
Area/shaping
Area/skills
Area/transport
Area/vt
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Security
Kind/Testing
perf-regression-accepted
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Blocked
Status
Need More Info
Status
Upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
felis-terminal/felis!94
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/placeholder-aspect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
An image shown through Unicode-placeholder cells was stretched to fill the placement's
c=byr=box: each cell got an equal slice of the image. kitty'sgrman_put_cell_imagefits the image into the box with its aspect ratio kept, centers it, and gives each cell its share of that fitted rectangle, so margin cells show nothing.placeholder_tile_quadcuts each quad from the fitted rectangle in pixel space; both cell edges come from the cell index, so neighbors share one boundary.Reproduced side by side with kitty: a 200×100 image in a 10×10 box now draws at 2:1, centered, as kitty draws it.
Closes #83
c5d9c974559f90d3eac29f90d3eac2a76b077d43a76b077d43563d1c73e2