定制 smarter-solutions/ez-image-crop 二次开发

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

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

smarter-solutions/ez-image-crop

Composer 安装命令:

composer require smarter-solutions/ez-image-crop

包简介

This is a tool that improves cutting images in eZ Publish

README 文档

README

This is a tool that improves cutting images in eZ Publish

Install Package

composer require smarter-solutions/ez-image-crop "~1.0"

Register Bundle

// ezpublish/EzPublishKernel.php

class EzPublishKernel extends Kernel
{
    ...
    public function registerBundles()
    {
        ...
        $bundles = array(
            ...
            new SmarterSolutions\EzComponents\EzImageCropBundle\EzImageCropBundle()
            ...
        );
        ...
    }
}

Define filters

# ezpublish/config/ezpublish.yaml

ezpublish:
    imagemagick:
        filters:
            gravity/center: '-gravity Center'
...

Create Image alias

# ezpublish/config/ezpublish.yaml

ezpublish:
    system:
        frontend:
            image_variations:
                first_alias:
                    reference: null
                    filters:
                        - { name: gravity/center, params: [200, 75] }
...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固