imagemagick-aws-lambda-2 icon indicating copy to clipboard operation
imagemagick-aws-lambda-2 copied to clipboard

drawText doesn't appear to work with this layer

Open jfederer opened this issue 3 years ago • 2 comments

Using this layer with a GM wrapper:

const GM = require('gm'); const gm = GM.subClass({ imageMagick: true });

exports.osdStamp = async (buf) => { return new Promise((resolve, reject) => { gm(buf) .fontSize(40) .drawText(10,50, 'TEST MESSAGE') .toBuffer((err, buffer) => err ? reject(err) : resolve(buffer)); }); };

Does not put text on the image -- though it does return the image (and then save it to S3)...

Are the drawing functions of GraphicsMagik included in this layer?

jfederer avatar Feb 18 '22 20:02 jfederer

It seems this layer doesn't include any typography capabilities. Does anyone know how to add them?

jfederer avatar Feb 21 '22 18:02 jfederer

@jfederer Same here, I'm trying this tutorial now

Bersaelor avatar Mar 10 '23 15:03 Bersaelor