lovell/sharp

Enhancement: add support to extend feature for width and height

Open

#1,072 建立於 2017年12月19日

在 GitHub 查看
 (9 留言) (0 反應) (0 負責人)JavaScript (31,994 star) (1,389 fork)batch import
enhancementhelp wanted

描述

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

貢獻者指南