RQRCode::Export::SVG
Constants
Instance methods
Render the SVG from the Qrcode.
Options:
offset - Padding around the QR Code in pixels
(default 0)
fill - Background color e.g "ffffff"
(default none)
color - Foreground color e.g "000"
(default "000")
module_size - The Pixel size of each module
(defaults 11)
shape_rendering - SVG Attribute: auto | optimizeSpeed | crispEdges | geometricPrecision
(defaults crispEdges)
standalone - Whether to make this a full SVG file, or only an svg to embed in other svg
(default true)
use_path - Use <path> to render SVG rather than <rect> to significantly reduce size
and quality. This will become the default in future versions.
(default false)
viewbox - replace width and height in with a viewBox, allows CSS scaling
(default false)
svg_attributes - A optional hash of custom attributes. Existing attributes will remain.
(default {})