seppzzz/silverstripe-image-cropper-field
Composer 安装命令:
composer require seppzzz/silverstripe-image-cropper-field
包简介
Adds a new field to images to allow them to be cropped. This will give the ability to save as new or overwrite current image.
README 文档
README
Image Cropper Field THIS IS A FORK FROM https://github.com/webbuilders-group/silverstripe-image-cropper-field
Adds the ability to crop images from within the SilverStripe file section.
Requirements
- SilverStripe 4.4.x
Installation
Installation is supported via composer only
composer require seppzzz/silverstripe-image-cropper-field
- Run
dev/build?flush=allto regenerate the manifest
Setup
There is nothing to configure. Once you install and run dev/build?flush=all, you can begin cropping images right away from within the file section of the CMS.
Features and Overview
Image Cropper Field has a wide array of tools that will help any CMS Admin crop their images and limit the need to use external tools like Photoshop.
The tools:
- cropper dimensions tool
- move tool
- cropper tool
- zoom tools
- image rotating tools
- reset tool
- aspect ratio setting tool
Image Cropper Field will not overwrite the current image and instead will create a new image. The filename of the new image is determined by the filename of the current image. The new image is saved into the Cropped subfolder. The name of the new image can be changed before you click the Crop Image button.
Once it has created the new image, a green alert will be shown along with a link to your new image; However, this link will, currently, not be shown when you are using this field from the file Insert Form.
Once the link is clicked, you will be taken to your new image.
More features/tools to come in version 2:
- image flip tools
- ability to download your new cropped image before clicking the
Crop Imagebutton.
Reporting an issue
When you are reporting an issue, please ensure you specify what version of SilverStripe you are using i.e. 4.4.4. Also, be sure to include any JavaScript or PHP errors you receive.
For PHP errors, please ensure you include the full stack trace. Also, please include your implementation code as well as how you produced the issue. You may also be asked to provide some of the classes to aid in re-producing the issue. Stick with the issue, remember that it was you who saw the issue not the maintainer of the module so it may take a lot of questions to arrive at a fix or answer.
FAQ
Q: I can't find my image after creating it in the file Insert Form. Where is my new image?
A: Your new image will be saved to the subfolder named Cropped. You will have to, currently, refresh the page and open the insert image window again to get the image to show up when cropping from the file Insert Form.
Q: How do I change the folder the image saves too?
A: In this current version, you cannot change where the image is saved too. We will be trying to add it in a future release.
Q: You keep mentioning file Insert Form, where is this form? Do I use it?
A: The file Insert Form can be found when you interact with the Files popup window, so either by clicking on the insert from files button on a WYSIWYG editor or by clicking the browse button/link on an upload field. The image below is the file Insert Form that is referred too.
Q: Can I use this field on a page or a dataobject?
A: Currently this field is designed only to be used in the file system of the CMS and the file Insert Form. There are plans to allow this field to be used on pages/dataobjects, and it will most likely come in version 2.
seppzzz/silverstripe-image-cropper-field 适用场景与选型建议
seppzzz/silverstripe-image-cropper-field 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 09 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「image」 「silverstripe」 「crop」 「imagecrop」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 seppzzz/silverstripe-image-cropper-field 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 seppzzz/silverstripe-image-cropper-field 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 seppzzz/silverstripe-image-cropper-field 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A bundle providing fields for image upload with jquery upload and image cropping with jcrop for symfony2
Yii2 LightBox image galary widget uses Lightbox v2.10.0 by Lokesh Dhakar
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
A image cropping field for kirby.
Analytics chooser extensions for site settings.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-09-21















