das-mensch / sdl-image-slicer

Slice image evenly by given parameters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sdl-image-slicer

Slice Images by given parameters evenly

Dependencies

  • libsdl2-dev
  • libsdl2-image-dev

Installation

Just run the build script

./build.sh

You may want to copy the binary to your local bin directory.

Usage

# sdl-slicer "/path/to/image" <h-slice-count> <v-slice-count>
sdl-slicer "some-image.png" 2 2
# This will split the image evenly into 4 new images which will be saved
# as "some-image-0.png" through "some-image-3.png" respectively, starting
# from the upper left to the lower right.

About

Slice image evenly by given parameters

License:MIT License


Languages

Language:C 95.7%Language:Shell 4.3%