algo26-matthias/create-thumbnail 问题修复 & 功能扩展

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

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

algo26-matthias/create-thumbnail

Composer 安装命令:

composer require algo26-matthias/create-thumbnail

包简介

A simple class to create thumbnails from larger images

README 文档

README

This is just a simple class to create a thumbnail from a given source image.

You'll need one of these packages installed and available:

  • the "convert" command line tool from ImageMagick
  • the ImageMagick PHP extension
  • the GD libarary PHP extension

Depending on your choices of these tools the available source and target image formats vary. JPEG always is a safe bet, but in properly set up environments most of the usual formats like GIF or PNG will be avilable as well.

Purpose of this class is only thumbnail generation, so there's not many options available.

Usage example:

use Algo26\CreateThumbnail\CreateThumbnail;

$thumbnail = new CreateThumbnail();

$thumbnail->setTargetWidth($width)
        ->setTargetHeight($height)
        ->setTargetType('JPEG')
        ->setJpegCompressionQuality(90)
        ->create($inputFile, $outputFile);

Need anything? Just drop me a line

  • Matthias

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固