lovell/sharp

Enhancement: add support to extend feature for width and height

Open

#1.072 geöffnet am 19. Dez. 2017

Auf GitHub ansehen
 (9 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (31.994 Stars) (1.389 Forks)batch import
enhancementhelp wanted

Beschreibung

Hello,

is there a way to pad an image if it's smaller than required dimensions?

For example:

desired dimensions actual dimensions expected result
1000x1000 200x200 1000x1000 image with 200x200 centered inside
300x300 350x350 downscaled to 300x300

Original original

Desired output large

Contributor Guide