jimp-dev/jimp

How to align with percentages in cover and contain?

Open

#740 aberto em 20 de mai. de 2019

Ver no GitHub
 (0 comments) (2 reactions) (0 assignees)JavaScript (785 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (13.218 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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

Guia do colaborador