Class: Jekyll::Images::Oxipng

Inherits:
Runner
  • Object
show all
Defined in:
lib/jekyll/images/oxipng.rb

Overview

Runs oxipng on PNG files

Constant Summary collapse

BINARY =
'oxipng'.freeze

Instance Attribute Summary

Attributes inherited from Runner

#binary, #bytes_after, #bytes_before, #file, #interlaced

Instance Method Summary collapse

Methods inherited from Runner

#exist?, #initialize, mime, register, run, #run, runners

Constructor Details

This class inherits a constructor from Jekyll::Images::Runner

Instance Method Details

#commandObject



11
12
13
# File 'lib/jekyll/images/oxipng.rb', line 11

def command
  [binary, '--strip', 'all', '--quiet', '--interlace', (interlaced ? %w[1 --force] : '0'), file].flatten
end