Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to increase the image dimension #22

Open
jayaryan opened this issue Oct 24, 2018 · 2 comments
Open

How to increase the image dimension #22

jayaryan opened this issue Oct 24, 2018 · 2 comments

Comments

@jayaryan
Copy link

Not an issue but its a query, any way to directly define the size of the image?

@tkrkt
Copy link
Owner

tkrkt commented Oct 24, 2018

Currently, the size can not be defined directly...
You need to resize after generating the image.

@klawdyo
Copy link

klawdyo commented Jan 14, 2019

You can combine "padding" and "font" to increase image size:

const img = text2png("text", {
    padding:200,
    font:'200px Roboto',
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants