Open maqboolkhan opened 8 years ago
This is not the perfect solution, but what I did in my case was:
const title = job.title.substring(0, 25)
gm(image)
.drawText(50, 170, title.length === job.title.length ? title : `${title}...`)
Hi!
You can use ImageMagick's caption and the .out(...) function which is poorly documented in my opinion.
Example: .out('-size', '400x', 'caption: "text to be wrapped"') => the text to be wrapped will be of 400px maximum width.
You might eventually use .out('-composite') in order to merge the caption in another image.
i m creating images with
gn
and its awesome so far but now m stuck that text is overflowing from image and can anyone help me how to fix it ?here is the image:
and my code is:
please help and thanks in advance! :)