Automatically choose best size and encoding for QR codes.