PHPackages                             bardoqi/image-splitter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. bardoqi/image-splitter

ActiveLibrary[Image &amp; Media](/categories/media)

bardoqi/image-splitter
======================

Split large images into m x n equal-sized small pieces.

1.3.1(6y ago)115[1 issues](https://github.com/BardoQi/ImageSplitter/issues)[1 PRs](https://github.com/BardoQi/ImageSplitter/pulls)MITPHPPHP ~7.0CI failing

Since Sep 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/BardoQi/ImageSplitter)[ Packagist](https://packagist.org/packages/bardoqi/image-splitter)[ Docs](https://github.com/BardoQi/ImageSplitter)[ RSS](/packages/bardoqi-image-splitter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (2)Used By (0)

Simple Image Splitter
=====================

[](#simple-image-splitter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c678d4ff834a852ef06e692131c961c959dd07e49748ec420e039914dc52a88c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626172646f71692f696d61676573706c69747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bardoqi/imagesplitter)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8ee6e6306313b7f345a04b76e55d74e71e4e1d25146bf2b68bc8a5e63cd03c27/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626172646f71692f696d61676573706c69747465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bardoqi/imagesplitter)[![Coverage Status](https://camo.githubusercontent.com/0fc252975765a58e480bcbe52316863992249327c6717dacbfb1c40b4ea4ce83/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f626172646f71692f696d61676573706c69747465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bardoqi/imagesplitter/code-structure)[![Quality Score](https://camo.githubusercontent.com/8f1bfe45bc694666fdf6fb1e9d386018b378bcda3638c611e221821f1b415d9b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f626172646f71692f696d61676573706c69747465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/bardoqi/imagesplitter)[![Total Downloads](https://camo.githubusercontent.com/f87ea078d6494e328ab3da7e53852ff7803a997a566f84098372a66fd52f1997/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626172646f71692f696d61676573706c69747465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bardoqi/imagesplitter)

Split large images into m x n equal-sized small pieces.

Introduction
------------

[](#introduction)

Split large images into m x n equal-sized small pieces.

Install
-------

[](#install)

Via Composer

```
$ composer require bardoqi/image-splitter
```

Usage
-----

[](#usage)

```
    use ImageSplitter\ImageSplitter;
    use ImageSplitter\ImageSplitterException;

    try{
      	ImageSplitter::getInstance($row_count,$col_count,$output_path,$output_type)
             ->splitToTile($src_filename,$file_prefix);
    }catch(ImageSplitterException $e){
         // Write your logFile;
    }
```

Features
--------

[](#features)

This library supports the following image\_type:

- Png
- Gif
- Jpeg, Jpg

This library supports the parameters of config

- $row\_count: The count of rows of the new image files.
- $col\_count: The count of columns of the new image files.
- $output\_path: The output path of the new image files.
- $output\_type: The output type of the new image files, available values are IMAGETYPE\_PNG, IMAGETYPE\_JPEG and IMAGETYPE\_GIF. default value: IMAGETYPE\_PNG

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please create an issue in the issue tracker.

Credits
-------

[](#credits)

- [Bardo Qi](https://github.com/bardoqi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2415d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bfb2d0271845406a6b777d824993d97eec9f249b61ffa43b86994698b988e30?d=identicon)[bardoqi](/maintainers/bardoqi)

---

Top Contributors

[![BardoQi](https://avatars.githubusercontent.com/u/409367?v=4)](https://github.com/BardoQi "BardoQi (9 commits)")

---

Tags

PHP7Image Splitterimage to tile

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bardoqi-image-splitter/health.svg)

```
[![Health](https://phpackages.com/badges/bardoqi-image-splitter/health.svg)](https://phpackages.com/packages/bardoqi-image-splitter)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

959.4M20](/packages/marc1706-fast-image-size)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
