lovell/sharp

Enhancement: add support to extend feature for width and height

Open

#1.072 aberto em 19 de dez. de 2017

Ver no GitHub
 (9 comments) (0 reactions) (0 assignees)JavaScript (1.389 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (31.994 stars)
Métricas de merge de PR
 (Mesclagem média 4d 19h) (18 fundiu PRs em 30d)

Description

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

Guia do colaborador