You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a proof of concept I added if(config.watermark !== false){ image.overlayWith('admin/wm.png', { gravity: sharp.gravity.southeast } ); }
to lib/sharp.js
So, at least the current sharp version already supports this api. "All that's needed" is to wire up an appropriate API from gulp-responsive to call this function. I can think of an easy way with {overlayFile, gravity} or additionally/optionally, calculating the position in pixels by passing in a percentage for width and height.
I'd be happy to give this a go if you'd be ok with some hand-holding with the git process (I've never used git in a formal team before).
The text was updated successfully, but these errors were encountered:
Can support for sharp.overlayWith be added?
As a proof of concept I added
if(config.watermark !== false){ image.overlayWith('admin/wm.png', { gravity: sharp.gravity.southeast } ); }
to lib/sharp.js
So, at least the current sharp version already supports this api. "All that's needed" is to wire up an appropriate API from gulp-responsive to call this function. I can think of an easy way with
{overlayFile, gravity}
or additionally/optionally, calculating the position in pixels by passing in a percentage for width and height.I'd be happy to give this a go if you'd be ok with some hand-holding with the git process (I've never used git in a formal team before).
The text was updated successfully, but these errors were encountered: