When stdout is a tty the QR Code is displayed in ASCII art. When stdout is a pipe to a file, an image is written (PNG format by default).