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
Hi, I was wondering if there's a way to compose the current GraphicsMagick object onto another image. Currently, the way I do it is like so:
constfs=require("fs")constgm=require("gm")letoverlay=gm(1280,720,"#FFFFFF")// ... add text to image, etc ...// now to put *this* image on top of *another* image// currently I write this image to a temporary file, and then call compositeoverlay.write("image_overlay.png")letunderlay=gm("underlay_template.png")underlay.composite("image_overlay.png")underlay.write("image.png")fs.rmSync("image_overlay.png")
The reason the underlay has to be separate from the underlay template image is due to the fact that I need to call functions such as raise and such on the overlaying image (i.e. specific effects to the overlay layer.) I'm not sure if I'm missing anything, but please correct me if I am.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, I was wondering if there's a way to compose the current GraphicsMagick object onto another image. Currently, the way I do it is like so:
The reason the underlay has to be separate from the underlay template image is due to the fact that I need to call functions such as
raise
and such on the overlaying image (i.e. specific effects to the overlay layer.) I'm not sure if I'm missing anything, but please correct me if I am.Thanks!
The text was updated successfully, but these errors were encountered: