Image::Magick::TilerSlice an image into N x M tiles. | |
Download |
Image::Magick::Tiler Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Ron Savage
- Publisher web site:
- http://search.cpan.org/~rsavage/
Image::Magick::Tiler Tags
Image::Magick::Tiler Description
Slice an image into N x M tiles. Image::Magick::Tiler is a Perl module to slice an image into N x M tiles.Synopsis #!/usr/bin/perl use Image::Magick::Tile; Image::Magick::Tile -> new ( input_file => 'image.png', geometry => '3x4+5-6', output_dir => '', output_type => 'png', ) -> tile();This slices image.png into 3 tiles horizontally and 4 tiles vertically.Further, the width of each tile is ( (width of image.png) / 3) + 5 pixels, and the height of each tile is ( (height of image.png) / 4) - 6 pixels.In the geometry option NxM+x+y, the x and y offsets can be used to change the size of the tiles.For example, if you specify 2x3, and the vertical line which splits the image goes through an interesting part of the image, you could then try 2x3+50, say, to move the vertical line 50 pixels to the right. This is what I do when printing database schema generated with GraphViz::DBI. Requirements: · Perl
Image::Magick::Tiler Related Software