Port recent watermark changes to libvips
This commit is contained in:
parent
d9a2e0bfb9
commit
d5811503da
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ Napi::Value Watermark(const Napi::CallbackInfo &info) {
|
|||
|
||||
if (resize && append) {
|
||||
watermark = watermark.thumbnail_image(width);
|
||||
} else if (resize && yscale) {
|
||||
watermark = watermark.thumbnail_image(width, VImage::option()->set("height", page_height * yscale)->set("size", VIPS_SIZE_FORCE));
|
||||
} else if (resize) {
|
||||
watermark = watermark.thumbnail_image(
|
||||
VIPS_MAX_COORD, VImage::option()->set("height", page_height));
|
||||
|
|
Loading…
Reference in a new issue