Giter VIP home page Giter VIP logo

segen-resizer's Introduction

Resizer

This script can be used to resize an image file to different sizes and save them to a directory with different postfixes at the end of each file name. Some preset file sizes and names are alredy stored to help you speed up the conversion process. For more details please read the header comments in the source files.

Examples

Example 1

Resize image.png to 25 by 25 pixels and save it with the new name of resize.png.

python3 resizer-base.py -f image.png -o . -s 25x25 -p "" -n resize

Example 2

Resize image.png to 25 by 25 pixels and 50 by 50 pixels and save them with the prefixes _25 and _50 to the directory called results.

python3 resizer-base.py -f image.png -o ./results -s 25x25,50x50 -p _25,_50

Example 3

Resize image.png to be used as an iOS UITabBarItem image. Rename the new files to start with "tab-bar-icon".

python3 resizer-preset.py -f image.png -t iOS_Tab-bar-icon -n tab-bar-icon

Dependencies

License

The MIT License (MIT) Copyright (c) 2015 Soma Erdélyi ([email protected])

segen-resizer's People

Contributors

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