generating a random 24bit bmp of given resolution

Get github.com/mkf/randombmp.

Usage: make, or: make W=1024 …

It generates a bitmap of:

By:

  1. Creating a file out.ppm starting with P6⏎$W $H⏎255
  2. H times appending to it W 3-byte blocks from the source using dd
  3. Generating file out.bmp from out.ppm using ppmtobmp (default parameters)