mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 14:16:17 +01:00
Expose vips_text to create an image containing rendered text (#3252)
This commit is contained in:
@@ -1185,6 +1185,10 @@ class PipelineWorker : public Napi::AsyncWorker {
|
||||
info.Set("trimOffsetTop", static_cast<int32_t>(baton->trimOffsetTop));
|
||||
}
|
||||
|
||||
if (baton->input->textAutofitDpi) {
|
||||
info.Set("textAutofitDpi", static_cast<uint32_t>(baton->input->textAutofitDpi));
|
||||
}
|
||||
|
||||
if (baton->bufferOutLength > 0) {
|
||||
// Add buffer size to info
|
||||
info.Set("size", static_cast<uint32_t>(baton->bufferOutLength));
|
||||
|
||||
Reference in New Issue
Block a user