Skip to content

das-mensch/sdl-image-slicer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published