Skip to content

alexhernandez/guillotine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪
🔪🔪🔪   __ 💀 GUILLOTINE 💀 __  🔪🔪🔪
🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪🔪

Guillotine

  • 🔍 Hunt Down The Images
  • 🔪 Crop/Slice Processable Images
  • 📓 Log Unprocessable Images

Prerequisites

Install Image Magick:

brew install imagemagick

Install Node.js:

brew install node

Getting Started

  1. Initialize Project:
npm install
  1. Add a guillotine.config.js file to your project

  2. Lastly, dump all your raw images inside guillotine/assets/input or in your designated inputDir and run:

npm run guillotine

Adding A Config File

// guillotine.config.js
//
const config = {
  inputDir: 'guillotine/assets/input',
  outputDir: 'guillotine/assets/output',
  logsDir: 'guillotine/logs',
  logFile: 'logs.txt',
  prefix: '',
  suffix: '',
  allow: {},
  ignore: [],
};

module.exports = config;

About

Basic Image Processing w/ Node.js & Image Magick

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published