hengebytes/ibexa-blurhash 问题修复 & 功能扩展

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

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

hengebytes/ibexa-blurhash

最新稳定版本:v1.0.2

Composer 安装命令:

composer require hengebytes/ibexa-blurhash

包简介

Symfony bundle to generate Image Blurhash in Ibexa CMS

README 文档

README

composer require hengebytes/ibexa-blurhash

(Optional) configure image transformation

# config/packages/ibexa_blurhash.yaml
parameters:
    # uploaded image resized to 75x75 before encoding
    ibexa_blurhash.encode.resize_original_width: 75
    ibexa_blurhash.encode.resize_original_height: 75
    # blurhash generated with 4x3 component, x and y component counts must be between 1 and 9 inclusive.
    ibexa_blurhash.encode.blurhash_x_count: 4
    ibexa_blurhash.encode.blurhash_y_count: 3

Query blurhash data in GraphQL.

query {
  media {
    image(contentId: 19) {
      image {
        uri
        additionalData {
          blurhash
        }
      }
    }
  }
}

Decode in browser

NOTE

Blurhash generates on image upload, so it will only be available for images uploaded after installation of this bundle.

Credits

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-03