定制 coresphereweb/loremimage 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

coresphereweb/loremimage

Composer 安装命令:

composer require coresphereweb/loremimage

包简介

Random image system for PHP

README 文档

README

License

It requires PHP 5.2+ and is licensed under the New BSD License. You can obtain the latest version from our GitHub repository or install it via Composer:

composer require coresphereweb/loremimage

Usage

Render:

$lorem = new \LoremImage\LoremImage();
$lorem->setPathUrl('/loremimage/');
$lorem->setPathImages(PATH . 'img/loremimage/');

$lorem->render();

Conditions by _GET

  • b[/b] w - width to resize
  • (int) h - height to resize
  • (string) category(s) (folder in setPathImages())
  • (int) picture
  • (string) effect
  • (int) qtd
  • (bool) hierarchy - By default is active, when is false the system stop reading subcategories from category father.
  • (string) resize - crop (default), fill or proportional

Effects

  • pixelate*
  • smooth*
  • noise*
  • negative
  • emboss*
  • edge*
  • contrast
  • colorize
  • grayscale
  • brightness
  • blur*
  • blur2*
  • sharpen
  • This effects respond to _GET['qtd'], with recursive does the same procedure by a number inputed. Be carefoul, the higher is the number, more consuming and slower.

Routes (optional)

  1. width and height: /loremimage/r/600/400
  2. category: /loremimage/cars
  3. width, height and category: /loremimage/600/400/cars
  4. width, height, category and select picture by ASC: /loremimage/600/400/cars/1
  • IMPORTANT: .htaccess is necessary to routes work

(c) Coresphere Tecnologia, 2016 (http://coresphe.re)

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-10-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固