Sha256: d6bc6c190c7b2cb8769bacefc1a7b7d7b51423af3d8da4698e354762899c06d8

Contents?: true

Size: 1.16 KB

Versions: 3

Compression:

Stored size: 1.16 KB

Contents

save_png
========

Saves the given range of cards to a PNG

Options
-------


range
  default ``:all``

  the range of cards over which this will be rendered. See {file:README.md#Specifying_Ranges Specifying Ranges}

dir
  default: ``'_output'``

  the directory for the output to be sent to. Will be created if it doesn't exist.

prefix
  default ``'card_'``

  the prefix of the file name to be printed.

count_format
  default: ``'%02d'``

  the format string used for formatting the card count (e.g. padding zeros). Uses a Ruby format string (see the Ruby doc for ``Kernel::sprintf`` for specifics)

rotate
  default: ``false``

  If ``true``, the saved cards will be rotated 90 degrees clockwise. Or, rotate by the number of radians. Intended to rendering landscape instead of portrait. Possible values: ``true``, ``false``, ``:clockwise``, ``:counterclockwise``

trim
  default: ``0``

  the space around the edge of each card to trim (e.g. to cut off the bleed margin for print-and-play). Supports :doc:`/units`.

trim_radius
  default: ``0``

  the rounded rectangle radius around the card to trim before saving.

Examples
--------

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
squib-0.12.0 docs/dsl/save_png.rst
squib-0.11.0 docs/dsl/save_png.rst
squib-0.10.0 docs/dsl/save_png.rst