承接 dft/silverstripe-file-base64 相关项目开发

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

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

dft/silverstripe-file-base64

最新稳定版本:1.0.1

Composer 安装命令:

composer require dft/silverstripe-file-base64

包简介

Simple module to add base64 string data methods to SilverStripe files and images

README 文档

README

Simple SilverStripe module to generate a Base64 encoded string of File or Image data that can be used in image tags, etc.

Install

Install via composer:

composer require dft/silverstripe-file-base64

Usage

This module automatically adds two methods to files and images that allow accessing the data string:

NOTE: Currently the following methods will only return a data string of the base image NOT a modified image (for example using Image methods like Fill or Fit)

Base64

Returns the base 64 encoded string of the file/image data. For example, in a template you can call:

$Image.Base64

Base64DataURL

Returns a Data URL that can be used in image tags, links etc. To use it in templates you can call:

<img src="$Image.Base64DataURL">

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-06-06