andymeneely/squib

dpi is not a valid config file setting

scholar-mage opened this issue · 2 comments

The default config.yml files have a 'dpi' option listed, but it appears this is ignored. It's also not listed as an option inside the conf.rb defaults (see below). Instead, dpi can be passed to Deck.new().

    DEFAULTS = {
      'antialias'     => 'best',
      'backend'       => 'memory',
      'count_format'  => '%02d',
      'custom_colors' => {},
      'dir'           => '_output',
      'hint'          => :none,
      'img_dir'       => '.',
      'progress_bars' => false,
      'prefix'        => 'card_',
      'ldquote'       => "\u201C", # UTF8 chars
      'rdquote'       => "\u201D",
      'lsquote'       => "\u2018",
      'rsquote'       => "\u2019",
      'em_dash'       => "\u2014",
      'en_dash'       => "\u2013",
      'ellipsis'      => "\u2026",
      'smart_quotes'  => true,
      'text_hint'     => 'off',
      'warn_ellipsize' => true,
      'warn_png_scale' => true,
    }

Interesting. I'll take a look!

So I ended up keeping the behavior the same, but just removed the default from the config for v0.16. I added a comment pointing people to the right place just in case. See 34ce3e8