macgyer/mg-image-comparison-slider
Composer 安装命令:
composer require macgyer/mg-image-comparison-slider
包简介
Slider for showing the difference between two images
README 文档
README
Image Comparison Slider
A slider showing the difference between two images. Can be used vertical and horizontal. Based on img-comparison-slider
by sneas.
Installation
The preferred way of installation is through Composer. If you don't have Composer you can get it here: https://getcomposer.org/
To install the package add the following to the require section of your composer.json:
"require": { "macgyer/mg-image-comparison-slider": "^1.0" }
Include the Site Set, either in your site configuration or as a dependency of another Set:
# config/sites/<your-site>/config.yaml dependencies: - macgyer/mg-image-comparison-slider
Without Site Sets
If your setup does not use Site Sets, import the TypoScript manually in your sitepackage:
@import 'EXT:mg_image_comparison_slider/Configuration/TypoScript/setup.typoscript'
Global default colors for handle and divider require the Site Set. Without it, colors can be configured individually per content element.
Changelog
1.2.0 - 2026-05-10
- [NEW]: add TYPO3 14 compatibility
- [FIX]: scope inline CSS to element ID to prevent color overrides when multiple sliders appear on the same page
- [FIX]: restore Appearance tab in backend form by basing CE type on
types['header']instead oftypes[1] - [FIX]: place Slider tab as second tab directly after General
1.1.1 - 2026-02-01
- [NEW]: update JS library to 8.0.7 which uses Constructable Stylesheets for Shadow DOM to avoid issues with nonce attribute when CSP is enabled
1.1.0 - 2025-11-22
- [FIX]: render images with
<f:image>instead of partial - [NEW]: add settings for handle and divider
1.0.1 - 2025-10-31
- [TASK]: cleanup unnecessary CSS rules
- [TASK]: fix README URLs
1.0.0 - 2025-10-31
- initial release
| URL | |
|---|---|
| Repository: | https://github.com/MacGyer/mg-image-comparison-slider |
| TER: | https://extensions.typo3.org/extension/mg_image_comparison_slider |
macgyer/mg-image-comparison-slider 适用场景与选型建议
macgyer/mg-image-comparison-slider 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 macgyer/mg-image-comparison-slider 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 macgyer/mg-image-comparison-slider 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-10-31