Resizing QR Codes

You can resize QR codes with various methods. This can be done through styles or by using local formatting.

How to Resize QR Codes Using Styles

  1. From the Content Explorer, open the stylesheet that you want to modify.
  2. From the Medium drop-down in the Stylesheet Editor, make sure the proper medium is selected before you begin. In the Advanced view, you can open multiple mediums at once; you just need to look at the title at the top of the medium pane and make sure you are working in the correct one. If you are not using stylesheet mediums for your different outputs or if you want all mediums to have the same settings, just leave the medium set to default and continue.

    Mediums can be used if you want to use one group of settings for online output types and another group of settings for print-based output types. For example, you might use the default medium for your online outputs and the print medium for your print outputs. See Mediums and Media Queries.

    Please note that Flare remembers the last medium that you used when working in the stylesheet, so it may or may not be the one that you want to use the next time around.

  3. In the local toolbar, make sure the first button displays . If the button displays instead, then click it.
  4. In the upper-left corner of the editor, click in the drop-down field and select .
  5. Select the MadCap|qrCode style.
  6. From the Show drop-down list on the upper-right side of the editor, select .
  7. (Optional) You can use the toggle button in the local toolbar to show properties below in a group view or an alphabetical view .
  8. You can use the following steps to specify a precise width or height for the style. You can also specify a maximum or minimum width or height.

    To Set a Precise Width and/or Height

    1. If you are using the group view, expand the Box group.
    2. To the right of height and/or width, click , and complete the fields in the popup. Enter a value in the lower-left area and choose from several different units of measurement (points, pixels, centimeters, etc.) in the lower-right area. Click OK when you are finished.

      Note When resizing objects, you can ensure the aspect ratio is maintained. For example, if you want certain objects to be resized so that each is exactly 3 inches high, you can make sure the width of each object is adjusted accordingly to stay in proportion. To do this, first set the height at 3 inches. You would not set the width property at all. In the same way, if you were to specify an exact width, you could maintain the aspect ratio by not setting the height.

    To Set the Maximum Width and/or Height

    If the original QR code is larger than the maximum width or height that is set, it will be reduced in size so that it is no greater than the maximum value. If the original QR code is smaller than the maximum width or height, it will not be resized.

    1. If you are using the grouped view, expand the Unclassified group.
    2. To the right of max-height and/or max-width, click , and complete the fields in the popup. Enter a value in the lower-left area and choose from several different units of measurement (points, pixels, centimeters, etc.) in the lower-right area. Click OK when you are finished.

      Note When resizing objects, you can ensure that the aspect ratio is maintained. For example, if you want certain objects to be resized so that they are no more than 5 inches wide, you can make sure that the height of each object is adjusted accordingly so that it stays in proportion. To do this, you would set the maximum width of the style at 5 inches. You would then leave the maximum height property unspecified. In the same way, if you were to specify a maximum height, you could maintain the aspect ratio by not setting the maximum width property.

    To Set the Minimum Width and/or Height

    If the original QR code is smaller than the minimum width or height that is set, it will be enlarged so that it reaches the minimum value. If the original QR code is larger than the minimum width or height, it will not be resized.

    1. If you are using the grouped view, expand the Unclassified group. 
    2. To the right of min-height and/or min-width, click , and complete the fields in the popup. Enter a value in the lower-left area and choose from several different units of measurement (points, pixels, centimeters, etc.) in the lower-right area. Click OK when finished.

      Note When resizing objects, you can ensure that the aspect ratio is maintained. For example, if you want certain objects to be resized so that they are at least 2 inches wide, you can make sure that the height of each object is adjusted accordingly so that it stays in proportion. To do this, you would set the minimum width at 2 inches. You would then leave the minimum height property unspecified. In the same way, if you were to specify a minimum height, you could maintain the aspect ratio by not setting the minimum width property.

  9. Click to save your work.

To apply a particular style class to a QR code (after you create it in the Stylesheet Editor), simply right-click the QR code where it is inserted. Then from the menu, select Style Class and choose the appropriate style.

Note Please be aware that if you are using percentage for the size of an object, the percentage refers to the block containing that object, not to the object itself. For example, if you have an object in a topic and set the width to 60%, this does not mean that the object will be reduced to 60% of its size. Instead, it means that the object will be resized so that its width is 60% of the "container" where it is inserted.

How to Resize QR Codes Using Properties

  1. Open the content file.
  2. Right-click on the QR code.
  3. From the drop-down list, select Edit QR Code. The Edit QR Code dialog opens.
  1. Select the General tab.
  2. From the Size field select one of the standard sizes. If you select (default), the code will be the size specified in the MadCap|qrCode style in your stylesheet. If you want to use a different size, you can set the max-height or max-width value for the MadCap|qrCode style.
  3. Click OK.
  4. Click to save your work.

How to Resize QR Codes Locally by Dragging the Icon

  1. Open the content file.
  2. Hover over the QR code. The following icon displays in the lower-right corner of the QR code:

  3. Click on the icon and drag your mouse either up and to the left (to reduce the size of the QR code) or down and to the right (to increase the size of the QR code).
  4. Click to save your work.

How to Reset the Size of a QR Code

  1. Open the content file.
  2. Right-click on the QR code.
  3. From the context menu, select Reset Size. The QR code returns to its original size.
  4. Click to save your work.

What’s Noteworthy?

Note When resizing a QR code, it is important that the width matches the height exactly. Otherwise, the QR code will not work. That is why it's useful to use the max-width or max-height properties, since they allow you to maintain the aspect ratio.

Note Use caution when resizing QR codes. If a code is too small, some QR code readers may have a difficult time reading it.