xaraya/images 问题修复 & 功能扩展

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

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

xaraya/images

Composer 安装命令:

composer require xaraya/images

包简介

Handles image manipulation with resizing/cropping/scaling/rotating and various filters

README 文档

README

What is it?

Images is a Xaraya Utility Module. It is currently responsible for basic image manipulation, including the following:

  • Resize Image files
  • Crop image files
  • Rotate image files
  • Add text to an image file (think buttons here...)
  • ...

How to use it?

Image Tags

<xar:image-resize src="FILEID" [width="([0-9]+)(px|%)" [height="([0-9]+)(px|%)"]] [constrain="0|1"] label="TEXT" />

The IMAGE tag is useful for displaying (cached) images at different proportions. Images are resized according to the height/width values you specify with the resulting image cached for faster displaying later on. Note: Any other attribute not listed will be passed directly on to the resultant <img> tag.

Examples:

Resize an image's width while keeping the proportions:

<xar:image-resize src="23" width="92px" constrain="1" label="my logo" />

Apply some pre-defined image processing (e.g. watermark):

<xar:image-resize src="test/image.jpg" setting="JPEG 800 x 600" label="my image" />

Included Blocks

There are no included blocks.

Privileges

The Images module only has the Admin privilege to assign. You will need this level if you want to set the general settings for the Images module. The Images module interacts with the uploads module, so make sure you set appropriate levels for that module as well. Take special note on the approval of files in the uploads module. Only files that have been approved will normally be accessible by standard users, or you need to assign them the EDIT privilege for the uploads.

Upgrade from version 1.0.0

The naming convention for derivative images has changed since version 1.0.0. So you can delete the old derivative images, and new derivative images will be created as needed in the same directory...

Further Information

Extended information about this module can be found at Xaraya Extension and Releases.

  • Click on Version History tab at the bottom to get the latest release information.
  • Related tutorials and documentation on Images found at Xaraya Documentation.

** Images module - Overview**
 Version 1.1.0 

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2022-04-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固