Code Monkey home page Code Monkey logo

image-resizing's Introduction

Image resizer

This script allows you to resize images.

Supported formats:

  • BMP
  • EPS
  • ICNS
  • IM
  • JPEG
  • JPEG 2000
  • MSP
  • PCX
  • PNG
  • PPM
  • SPIDER
  • TIFF
  • WebP
  • XBM

Prerequisites

The script is written in Python 3, so you'll need it's interpretator to run it.

Install

To install all the necessary libraries to run the script just open your terminal, go to downloaded project directory and type:

pip install -r requirements.txt

Usage

To run the script type following in terminal:

python image_resize.py example.png    

You can specify desired height/width (or both) OR scale.

To get arguments help type

python image_resize.py -h 

-s, --scale
-w, --width
-hg, --height
-o, --output

Examples

python image_resize.py example.png --scale 2

Image size is doubled, image saved with same name but with resolution in name (example_2692x1132.png).

python image_resize.py -w 500 example.png -o output.png

Image width will be 500px, output image named output.png.

python image_resize.py -hg 500 -w 300 example.png

You can specify both height and width.

Support

In case of any difficulties or questions please contact [email protected].

image-resizing's People

Contributors

dmigach avatar melevir avatar pelid 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.