serverlesspub / imagemagick-aws-lambda-2

ImageMagick for AWS Lambda 2 runtimes
https://serverless.pub
Other
259 stars 162 forks source link

drawText doesn't appear to work with this layer #43

Open jfederer opened 2 years ago

jfederer commented 2 years ago

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 commented 2 years ago

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

Bersaelor commented 1 year ago

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