jimp-dev/jimp

How to align with percentages in cover and contain?

Open

#740 geöffnet am 20. Mai 2019

Auf GitHub ansehen
 (0 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)JavaScript (785 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (13.218 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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