Skip to content

Instantly share code, notes, and snippets.

@3lvis
Last active August 5, 2016 12:49
Show Gist options
  • Select an option

  • Save 3lvis/02d97e9b4db684d3a5f2fb323f0400f1 to your computer and use it in GitHub Desktop.

Select an option

Save 3lvis/02d97e9b4db684d3a5f2fb323f0400f1 to your computer and use it in GitHub Desktop.
Script to generate 10 000 labeled images
  • brew install imagemagick
  • brew install ghostscript
  • brew install parallel
  • Then run in Terminal
seq -w 10000 | parallel --bar 'convert -gravity center -size 3000x3000 -background black -fill white -font Helvetica -pointsize 1000 label:{=$_+=0=} image{}.jpg'

Changelog:

@ole-tange

Copy link
Copy Markdown

seq -w 10000 | parallel --bar 'convert -gravity center -size 3000x3000 -background black -fill white -font Helvetica -pointsize 1000 label:{=$_+=0=} image{}.png'

@3lvis

3lvis commented May 26, 2016

Copy link
Copy Markdown
Author

Result:

image1-test1

@3lvis

3lvis commented May 26, 2016

Copy link
Copy Markdown
Author

Thanks @ole-tange added your improvements 💐

@elland

elland commented Aug 5, 2016

Copy link
Copy Markdown

Should it say brew instal parallel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment