-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancements to overlayWith method #239
Comments
I am wondering if there is any progress on this? |
Commit d92ea31 on the needle/v0.14.0 branch enhances the existing This can be tested via: npm install lovell/sharp#needle Many thanks to @chrisriley for his original PR #335 on which I based this work. |
v0.14.0 now available via npm, thanks again for all the help with this. |
@lovell Please expose the replicate feature from Vips |
@lemnisk8 Please can you create a new issue for this suggestion along with some examples of how you think the API might look, so we can invite others to discuss and/or submit a PR. |
The main aim here is to add support for Buffer input and allow for differing dimensions with an optional
gravity
. The API should look something like:withOverlay(image, options)
where:
image
is a String filepath or Buffer image dataoptions
is an Object containinggravity
e.g.sharp.gravity.southeast
, defaults tosharp.gravity.centre
Resizing of the image to overlay can be carried out beforehand using the existing resize method.
Applying a padding to the image to overlay will be possible with #128. This too can be carried out beforehand.
(See #97 for the original work on the
overlayWith
feature.)The text was updated successfully, but these errors were encountered: