承接 bitandblack/image-information 相关项目开发

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

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

bitandblack/image-information

最新稳定版本:3.2.0

Composer 安装命令:

composer require bitandblack/image-information

包简介

Reading information of images

README 文档

README

PHP from Packagist Latest Stable Version Total Downloads License

Bit&Black Logo

Bit&Black Image Information

Read information of images:

  • The size
  • The color profile

Currently supported files and extensions:

  • avif AV1 Image File Format
  • ai Adobe Illustrator Artwork
  • bmp Windows Bitmap
  • eps Encapsulated PostScript
  • gif Graphics Interchange Format
  • ico Initial Coin Offering
  • iff Interchange File Format
  • jp2, jpf (Extended) JPEG 2000
  • jpg, jpeg Joint Photographic Experts Group
  • pdf Portable Document Format
  • png Portable Network Graphics
  • psd (Adobe) Photoshop Document
  • svg Scalable Vector Graphics
  • tif, tiff Tagged Image File Format
  • wbmp Wireless Application Protocol Bitmap Format
  • webp Google WebP

Installation

This package is made for the use with Composer. Add it to your project by running $ composer require bitandblack/image-information.

Usage

Define your file with the File class. Init the Image class then and add your file:

<?php

use BitAndBlack\ImageInformation\Image;
use BitAndBlack\ImageInformation\Source\File;

$file = new File('MyFile.eps');
$image = new Image($file);

Access the image size: $image->getSize();

Access the images color profile: $image->getIccProfile();

Cache

You can speed up the library by using a cache. When initializing the image class, add a cache object as second parameter:

<?php

use BitAndBlack\ImageInformation\Cache\Cache;
use BitAndBlack\ImageInformation\Image;
use BitAndBlack\ImageInformation\Source\File;

$file = new File('MyFile.eps');
$image = new Image($file, new Cache());

Per default, the cache class uses a file system cache. This can be configured as only a PSR cache compatible class is needed.

Help

If you have questions feel free to contact us under hello@bitandblack.com.

Further information about Bit&Black can be found under www.bitandblack.com.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-14