/generate-sprite-by-video

The "generate-sprite-by-video" is a js library that can be used to generate sprites by video file using ImageMagick.

Primary LanguageJavaScriptMIT LicenseMIT

#Generate sprite by video

Example sprite: spritename

#Introduction

The "generate-sprite-by-video" can be used to generate sprites by video file using ImageMagick.

#Requirements

  1. Install Node.js
  2. If your command line does not support 'grep' command, install Git Bash
  3. Install [ImageMagick] (http://www.imagemagick.org/script/binary-releases.php) and check 'install legacy utilities'-checkbox

Install:

    1. git clone https://github.com/lidox/generate-sprite-by-video.git
    2. 'npm install' in order to install dependecies
    3. Edit config/config.json

Proper Use:

// first generate thumbnails:
node generate-thumbs.js [path-to-movies] [path-to-thumbs] [thumbnail-count]

example: node generate-thumbs.js C:\\Users\\bob\\Desktop\\Testing\\movies C:\\Users\\bob\\Desktop\\Testing\\thumbs 50

// then generate sprites:
node generate-sprite.js [path-to-movies] [path-to-thumbs]

example: node generate-sprite.js C:\\Users\\bob\\Desktop\\Testing\\movies C:\\Users\\bob\\Desktop\\Testing\\thumbs