承接 sergiocardoso/phpicture 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sergiocardoso/phpicture

Composer 安装命令:

composer require sergiocardoso/phpicture

包简介

Generate friendly thumbs from url with parameters

README 文档

README

PHPicture

This class generate thumb from images with frienldy directives and settings from url on HREF attribute from IMG tag on HTML.

Required
  • PHP > 5.4;
  • PHP GD;

Getting Started

Configuration:

It's necessary setup two folder on PHPicture.ini file:

  • [images_folder] - folder from all your images;
  • [cache_folder] - folder from a cache generation;
How its works:

Call all your images from HTML5 to PHPicture project. See the example below: If you install PHPicture project on the folder called myimg, and all your images are on the public/img folder, so change your HTML IMG SRC attribute to:

http://[absolute or relative path]/myimg/photo.png

Load the image from public/img folder.

http://[absolute or relative path]/myimg/photo-w:100-h:100.png

Resize this image to 100x100.

http://[absolute or relative path]/myimg/photo-w:140-h:120-b:e1e1e1.png

Resize this image to 140x120 and the fill the background with the hexdecimal color (b = background color parameter);

http://[absolute or relative path]/myimg/photo-f:jpg-q:9.png

Load image png in jpg format with 9 of compression. (q = quality parameter)

Version

1.0.0

Author

Sérgio Cardoso contato@sergiocardoso.org http://www.sergiocardoso.org

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固