Module | RQRCode::Export::PNG |
In: |
lib/rqrcode/export/png.rb
|
Render the PNG from the Qrcode.
There are two sizing algoritams.
The Googleis one will be used when no options are given or when the new size option is used.
Options: fill - Background ChunkyPNG::Color, defaults to ‘white’ color - Foreground ChunkyPNG::Color, defaults to ‘black‘
Googleis size - Total size of PNG in pixels. The module size is calculated so it fits. (defaults to 90) border_modules - Width of white border around in modules. (defaults to 4).
-- DONT USE border_modules OPTION UNLESS YOU KNOW ABOUT THE QUIET ZONE NEEDS OF QR CODES --
Original module_px_size - Image size, in pixels. border - Border thickness, in pixels
It first creates an image where 1px = 1 module, then resizes. Defaults to 90x90 pixels, customizable by option.