# --qrratio (QR Ratio)

<figure><img src="https://2710238457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2geS55YZoHVgHo474Ri%2Fuploads%2F7EN2SinTEfjmjeucgzSA%2Fseanp_ai_2023-08-14__64da692274e4499abed172b9.png?alt=media&#x26;token=1c3adc19-741b-4307-99fe-ee08c126b5bd" alt=""><figcaption><p><strong>underwater coral reef colorful fishes and marine life --qrw 1.5 --qrpattern rd1 --ar 16:9 --pos (0.2,0.2) --qrratio 0.5 --seed 2114950306917964</strong></p></figcaption></figure>

## 1. **Purpose:**

The purpose of the --qrratio parameter is to offer users the capability to define the QR code module size relative to the overall dimensions of the QR Art canvas. This ensures that QR codes remain scannable while integrating seamlessly into artistic designs.

## 2. **Usage:**

The --qrratio parameter is employed during QR Art generation. By specifying the QR ratio value, users can determine the proportion of the QR code module size concerning the width and height of the QR Art canvas.

## 3. Syntax:

The syntax for using the --qrratio parameter in QR Art generation is as follows:

<figure><img src="https://2710238457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2geS55YZoHVgHo474Ri%2Fuploads%2FFZGzijgNddrk0CTHYzNr%2Fimage.png?alt=media&#x26;token=fe9117f4-c6eb-4981-9d28-38535e2ab4a3" alt=""><figcaption><p>Use qr_ratio option</p></figcaption></figure>

or

<figure><img src="https://2710238457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2geS55YZoHVgHo474Ri%2Fuploads%2Fb28XttlHZaOCyblxywhX%2Fimage.png?alt=media&#x26;token=4e442b76-61db-4b2e-a405-780a70ac11a1" alt=""><figcaption><p>Use --qrratio in the prompt</p></figcaption></figure>

## 4. List QR Ratio:

*By default, QR ratio is 1.0 (--qrratio 1.0). Range (0.8-1.0)*

<table><thead><tr><th width="154" align="center">QR Ratio</th><th width="405" align="center">QR Size</th><th width="214" align="center">--qrratio value</th></tr></thead><tbody><tr><td align="center">0.8</td><td align="center">0.8 * Min(ConatinerWidth, ConatinerHeight)</td><td align="center">--qrratio 0.8</td></tr><tr><td align="center">0.85</td><td align="center">0.85 * Min(ConatinerWidth, ConatinerHeight)</td><td align="center">--qrratio 0.85</td></tr><tr><td align="center">0.9</td><td align="center">0.9 * Min(ConatinerWidth, ConatinerHeight)</td><td align="center">--qrratio 0.9</td></tr><tr><td align="center">0.95</td><td align="center">0.95 * Min(ConatinerWidth, ConatinerHeight)</td><td align="center">--qrratio 0.95</td></tr><tr><td align="center">1.0</td><td align="center">1 * Min(ConatinerWidth, ConatinerHeight)</td><td align="center">--qrratio 1.0</td></tr><tr><td align="center">custom</td><td align="center">custom value * Min(ConatinerWidth, ConatinerHeight)</td><td align="center">--qrratio &#x3C;custom value></td></tr></tbody></table>

<figure><img src="https://2710238457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2geS55YZoHVgHo474Ri%2Fuploads%2FQihk8jcs4EGASppwWsxh%2Fimage.png?alt=media&#x26;token=365c79f0-b6a2-42fb-b78b-4cd485139784" alt=""><figcaption><p>QRSize = QR Ratio * Min(ContainerWidth, Conatiner Height)</p></figcaption></figure>
