bostrom/text-to-image

Transparent background

Closed this issue · 2 comments

Hello,

I need to use a transparent background for the image, but when setting 'transparent' as bgColor, it works correctly, but it shows 2 texts, as you can see in the attach.

If I use any other color as bgColor, it works correctly.

Transparent bg, with 2 texts.

Sign

Red bg, with 1 text.
Sign

How can i solve it ?

Thanks in advance.

EDIT:

Solved by applying margin 0 in the config object.

@bostrom - This issue still exists in the latest version. I think this is happening only when bgColor is transparent and when we apply customHeight.

This was also reported in #156 and fixed in v.4.1.1.