jimp-dev/jimp

How to align with percentages in cover and contain?

Open

#740 opened on May 20, 2019

View on GitHub
 (0 comments) (2 reactions) (0 assignees)JavaScript (785 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (13,218 stars)
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