Module: Shellfie::CLIGenerate

Included in:
CLI
Defined in:
lib/shellfie/cli_generate.rb

Constant Summary collapse

ANIMATED_FORMATS =
%w[gif webp apng mp4 webm png-sequence].freeze
STATIC_FORMATS =
%w[png svg svg-raster webp html].freeze
SEMANTIC_FORMATS =
%w[txt ansi json asciicast cast].freeze
SUPPORTED_FORMATS =
(STATIC_FORMATS + ANIMATED_FORMATS + SEMANTIC_FORMATS).uniq.freeze
ASPECT_PRESETS =
{
  "readme" => { width: 800, height: 450 },
  "ogp" => { width: 1200, height: 630 },
  "widescreen" => { width: 1280, height: 720 },
  "standard" => { width: 960, height: 720 },
  "vertical" => { width: 720, height: 1280 }
}.freeze