On this page:
qr-code

2 Usage

 (require simple-qr) package: simple-qr

procedure

(qr-code data    
  output_file_path    
  #:mode mode    
  #:error_level error_level    
  #:module_width module_width)  void?
  data : (string?)
  output_file_path : (path-string?)
  mode : string?
  error_level : string?
  module_width : exact_nonngegative-integer?
output qr code image to file.

#lang racket

 

(require simple-qr)

 

(qr-code "Hello World!" "hello.png")

You can use the optional parameter #:module_width to control the size of image.

module_width means a block(black or white)’s width. 5 is the default.

#lang racket

 

(require simple-qr)

 

(qr-code "https://github.com/simmone" "normal.png")

 

(qr-code "https://github.com/simmone" "small.png" #:module_width 2)

 

(qr-code "https://github.com/simmone" "large.png" #:module_width 10)