Usage:

$ dot -Tjp2 input.dot

JPEG 2000

Output using the JPEG 2000 format.

JPEG's image compression can blur fine image details like text & lines, so consider using a lossless format (say, PNG or WebP) instead.