Giter Site home page Giter Site logo

gulp-image-checker's Introduction

Image Checker

devDependency Status

This project enables files dropped into /src folder to be organized into multipal folders. Source folder will not be flushed to enable extraction process over again.

It also enables resizing and compression of valid image type to another image type specified in the config.json.

Project utilizes:

  • Gulp Taskers Gulp
  • GraphicsMagick for node.js gm

Installation

Open the folder in your command line, and install the needed dependencies:

cd projectname
npm install

Build Commands

Run gulp to trigger tasker to organize working files, invalid images and valid images.

Run gulp validfilenames to trigger tasker to generate a json list of filenames form /valid folder.

Run gulp resize to trigger tasker to resize, compress and export to an image type from the /valid folder. It also saves a json list of resized filenames.

Run gulp clean to trigger tasker to flush all files and folders in /output. Files in source folder will not be amended.

Individual Build Commands

Run gulp workingfiles to trigger tasker to flush working files folder and re-extracts working files from souce folder.

Run gulp invalid to trigger tasker to flush invalid folder. It re-extracts invalid images and work files types from souce folder.

Run gulp valid to trigger tasker to flush valid folder and re-extracts valid images from souce folder.

Configuration (config.json)

{
    "directory": {
        "sourceDir":    "src",
        "validDir":     "output/valid/",
        "invalidDir":   "output/invalid/",
        "resizeDir":    "output/resized/",
        "workDir":      "output/working_files/"
    },
    "validFiletypes": [
        "jpg",
        "png"
    ],
    "workingFiletypes": [
        "eps",
        "tif",
        "psd",
        "ai",
        "PNG",
        "JPEG"
    ],
    "imgConvert": {
        "width": 180,
        "height": 120,
        "resizeFormat": "png"
    }
}

gulp-image-checker's People

Contributors

sanjitster avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.