jimp-dev / jimp-dev/jimp

How to align with percentages in cover and contain?

Open
#740 0 comments 2 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

# Expected Behavior

I want to align an image as I would in browser with following css:
```
object-fit: cover;
object-position: center 20%;
```

# Current Behavior

`cover()` only excepts `alignBits`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.