Giter Club home page Giter Club logo

thumbcreate's Introduction

thumbCreate

thumbCreate is a simple C++ command line tool that uses ImageMagick for taking a directory of images and rescaling them to a given width or height to generate thumbnails. Original images are not overwritten.

Installation

  • Download/Clone ImageMagick source
  • extract and navigate to the root directory of extracted files
  • run ./configure CXX=g++ CXXFLAGS=-O2
  • run make
  • run make install
  • Download/Clone thumbCreate.cpp
  • compile with:
g++ -O2 thumbCreate.cpp `Magick++-config --cppflags --cxxflags --ldflags --libs` -std=c++17 -o thumbCreate.out

Usage

- run with: ./thumbCreate.out /path/to/images width height
- Example: ./thumbCreate.out /Users/timination/photos 200 200

note: a thumbnails directory is created within the given path, it does not check if this already exists and images inside of thumbnails with matching output filenames will be overwritten. E.g. if I rescale image_x.jpg, it will create /thumbnails/image_x_thumbnail.jpg which may be overwritten by another image_x_thumbnail.jpg.

Contributing

Pull requests are welcome.

License

MIT

thumbcreate's People

Contributors

trimination avatar

Watchers

 avatar

thumbcreate's Issues

Separate source for single image processing

So thumbCreate takes a path to a directory that should be filled with images, but what if just a single image needs rescaling?

It would be nice to run this program for just one image at a time. Ideally a separate source that uses essentially the same codebase, however if #1 is addressed then it would also be a viable solution to use command-line args to specify 1 image as opposed to a directory.

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.