xanweb/c5-foundation
最新稳定版本:v2.1.6
Composer 安装命令:
composer require xanweb/c5-foundation
包简介
ConcreteCMS Foundation
README 文档
README
Installation
Include library to your composer.json
composer require xanweb/c5-foundation
How to use Image Data Extractor
Data Extractor tries to use both IPTC and EXIF metadata to fill image information.
Register importer processor within application/config/app.php
return [ /* * Importer processors */ 'import_processors' => [ 'xw.image.data_extractor' => \Xanweb\C5\Foundation\File\Import\Processor\DataExtractor::class, ], ];
You need then to map image information to properties or attributes.
Here is the list of available information keys:
image_title: title of the imageartist: artist nameauthor_title: author namekeywordsimage_descriptioncommentscopyright
The default mapping is like follows:
[
'image_title' => 'title', // mapped to file title property
'comments' => 'description', // mapped to file description property
'keywords' => 'tags', // mapped to file tags property
]
To override the default mapping you need to add xanweb.php config file under /application/config.
Here is an example of possible mapping:
<?php return [ 'file_manager' => [ 'images' => [ 'data_extractor' => [ 'image_title' => ['title', 'ak_alt'], // You can use multiple properties/attributes per field. 'comments' => 'description', 'keywords' => 'tags', 'author_title' => 'ak_author', // Use 'ak_' prefix for attributes. 'copyright' => 'ak_copyright', ] ], ], ];
统计信息
- 总下载量: 811
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-19