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

Use ImageMagick? #10

Open
probonopd opened this issue Dec 29, 2019 · 1 comment
Open

Use ImageMagick? #10

probonopd opened this issue Dec 29, 2019 · 1 comment

Comments

@probonopd
Copy link
Owner

Here's a quick example of how to generate a printable text label with ImageMagick:

convert -rotate 90 -pointsize 200 label:"Lorem Ipsum" -flop -bordercolor white -border 80x80 -resize 128x -monochrome label.png

Source: https://gist.github.com/stecman/ee1fd9a8b1b6f0fdd170ee87ba2ddafd#gistcomment-3040694

@jellyjellyrobot
Copy link

I find that setting antialiasing and strokewidth make the prints look nicer.

An example is

convert -monochrome \
  -font Courier-Bold \
  -background white \
  -fill black \
  -size x128 \
  -gravity west \
  -pointsize 32 \
  +antialias \
  -strokewidth 0.5 \
  caption:"Test\nTest2\nTest3\nTest4" \
  write.pbm

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

2 participants