bardoqi/image-splitter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bardoqi/image-splitter

Composer 安装命令:

composer require bardoqi/image-splitter

包简介

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

README 文档

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

Introduction

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

Install

Via Composer

$ composer require bardoqi/image-splitter

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

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

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固