Coder Social home page Coder Social logo

nicholasrasi / imagesresizer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 96 KB

:framed_picture: An images resizer made with NW.js, deployable on all the platforms

License: MIT License

JavaScript 53.89% HTML 38.19% CSS 7.92%
image resizer nw nwjs jimp parametric

imagesresizer's Introduction

Image resizer

This application resizes images in a easy and fast way. It is developed using the NW.js framework and is mainly based on the powerful JIMP library.

The parameters of the conversion like the size of the image, the quality and so on can be set using an external preset file. In this way the conversion is done using the values passed within the preset files, so the user can easily set all the parameters with a click. The values can be also set from the user interface.

An example of preset.json file is:

{
  "sizes": {
    "News": {
      "width": 700,
      "height": 500,
      "quality": 60,
      "resizeMode": ["cover"],
      "autoSize": "width"
    },
    "Highlights": {
      "width": 350,
      "height": 300,
      "quality": 60,
      "resizeMode": ["resize"],
      "autoSize": "width"
    }
  }
}

Parameters:

  • resizeMode is the type of resize that is applied. Possible values are resize, cover, contain.
  • autoSize is used when the resizer auto set the value of one dimension, width or height, according to the aspect ratio of the image. Possible values are none, width, height.

ImagesResizer

How to run it?

Clone this repo in your workspace and then install all the dependencies with

npm install

Then, run the application with NW.js

To debug it set the environment variable NODE_ENV to 'development'.

On Windows:

set NODE_ENV=development

On Linux/Mac:

NODE_ENV=development

imagesresizer's People

Contributors

makebit 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.