Git Product home page Git Product logo

piccolo's Introduction

Piccolo

Dependency Status devDependency Status Build Status Coverage Status

An image optimization API

API Documentation

Endpoint /optimization

  • Body
    • image: The binary image (50 MB max.) required
    • mode: The optimize mode (aggressive, mid, shy) defaults to mid

Usage

Docker

docker build -t piccolo .
docker run -p 3000:3000 -it piccolo

Standard

npm install
npm start

Todo

v1.0.0

  • Add tests and CI
  • Write some documentation on a Github page
  • Add Dockerfile
  • Publish the Docker image

v1.1.0

  • Add configuration file
  • Add the resizing feature

Thanks

piccolo's People

Contributors

caligone avatar gmourier avatar

Stargazers

Cédric avatar  avatar  avatar Indieklem avatar

Watchers

Eric G. avatar James Cloos avatar

piccolo's Issues

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: reply interface called twice

Description

When payload image value is not a file (for example just a string value) the server trigger a UnhandledPromiseRejectionWarning

Stacktrace

(node:56416) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: reply interface called twice
Debug: internal, implementation, error
    Error: Optimizing image error
    at identify.then.catch (/Users/guillaume/Sites/piccolo/routes/optimization.js:26:27)

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.