subugoe / iiif-bundle
symfony 的 IIIF Bundle
0.13.1
2022-02-28 10:41 UTC
Requires
- php: ^7.4 || ^8.0
- ext-gd: *
- ext-imagick: *
- jms/serializer-bundle: ^4.0
- league/flysystem: ^2.4 || ^3.0
- liip/imagine-bundle: ^2.0
- myclabs/php-enum: ^1.7
- subugoe/iiif-model: ^0.2
- xantios/mimey: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- league/flysystem-memory: ^2.0
- phpunit/phpunit: ^9.5
- dev-master
- dev-main
- 0.13.1
- 0.13.0
- 0.12.0
- 0.11.10
- 0.11.9
- 0.11.8
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.7
- 0.10.6
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.0
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.0
- dev-model
- dev-collections
This package is auto-updated.
Last update: 2024-09-08 11:51:29 UTC
README
这是一个用于从任意数据结构中获取 IIIF 表示的 Symfony 5.x/6.x Bundle。
示例配置
subugoe_iiif:
image:
http:
scheme: "https"
host: "images.example.com"
tile_width: 512
thumbnail_size: "96,"
zoom_levels: [1, 2, 4, 8, 16]
presentation:
logo: "http://service.example.com/fileadmin/gdz/layout/head_logo.jpg"
service_id: "http://service.exmple.com/"
http:
scheme: "https"
host: "manifests.example.com"
格式转换器
还需要定义一个名为 subugoe_iiif.translator
的所谓转换服务,即
Subugoe\IIIFBundle\Translator\TranslatorInterface: class: Subugoe\IIIFBundle\Translator\SubugoeTranslator arguments: ["@subugoe_find.search_service"]
转换器必须实现 Subugoe\IIIFBundle\Translator\TranslatorInterface
。已包含一个示例转换器,请参阅 SubugoeTranslator 类。
文件系统
此 Bundle 使用 Flysystem 来检索和存储(即缓存)瓦片和缩略图。如果不应启用缓存,应使用 Null Adapter
。请参阅 FlysystemBundle 文档中的配置选项和可用 Bundle。符合您需求的适配器必须在应用程序的主要 composer manifest 中要求。
请注意,需要存在两个 flysystem 服务,其中一个必须命名为 cache_filesystem
以用作缓存文件系统。原始扫描所在的原生文件系统必须别名或命名为 source_filesystem
。