Giter Site home page Giter Site logo

sticker-sizer's Introduction

sticker-sizer

Python tool to resize a directory of images in bulk, invoking ffmpeg to do the actual image resizing.

Resized files are saved with the size postpended to the name, under the same extension. For example, sticker.png is saved to sticker-512x512.png. Files which already end with the size are skipped, so re-running the program will not attempt to resize images to the same size.

Requires: click

Usage

python sticker-sizer.py PATH [--size 512x512] [--ext .png]

Provide a path to a directory of sticker files. Options:

  • --size: format WxH, default 512x512
  • --ext: output file extension, if you want a specific one (e.g. convert to png)
  • --help: More info

Example (bash)

$ ls stickers
sticker.png

$ python sticker-sizer.py stickers --size 512x512
Input path: stickers
Size: 512x512
1 of 1: sticker.png => Converted (sticker-512x512.png)
Processed: 1 of 1

$ python sticker-sizer.py stickers --size 512x512
Input path: stickers
Size: 512x512
1 of 2: sticker-512x512.png => Skipped
2 of 2: sticker.png => Converted (sticker-512x512.png)
Processed: 1 of 2

sticker-sizer's People

Contributors

ozzycallooh avatar

Watchers

James Cloos avatar  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.