Code Monkey home page Code Monkey logo

image-processing-api's Introduction

Image Processing API project

Scripts

  • Install: npm install
  • Start server: npm run start
  • Build: npm run build
  • Prettier: npm run prettier
  • Run unit test: npm run test

Usage

The server be served on port 3001:

Endpoint to resize images

http://localhost:3001/image-process

Expected query arguments are:

  • default imageName:
    • encenadaport
    • encenadaport
    • icelandwaterfall
    • palmtunnel
    • santamonica
  • width: valid numerical value > 0
  • height: valid numerical value > 0
  • user can click on big image to resize image

Example 1

http://localhost:3000 Will display project description and images gallery User can upload new image and edit image size by click on image

home page

Example 2

http://localhost:3000/image-process?imageName=fjord Will display the original fjord image. origin-image

Example 3

http://localhost:3000//image-process?imageName=fjord&width=100&height=100 Will scale the fjord image to 100 by 100 pixels and store the resulting image in public/resize folder.

resize-image

image-processing-api's People

Contributors

rabbithunter0502 avatar shuaixiaoqiang 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.