lovell/sharp

Enhancement: add support to extend feature for width and height

Open

#1072 aperta il 19 dic 2017

Vedi su GitHub
 (9 commenti) (0 reazioni) (0 assegnatari)JavaScript (1389 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (31.994 star)
Metriche merge PR
 (Merge medio 4g 19h) (18 PR mergiate in 30 g)

Descrizione

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

Guida contributor