pieceofcake2 / imagine
CakePHP 2 plugin for resizing, cropping and creating thumbnails of images with the Imagine library
Requires
- php: >=8.0
- composer/installers: ^1.0 || ^2.0
- imagine/imagine: ^1.5
- pieceofcake2/cakephp: ^2.12
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.6
- pieceofcake2/app: ^2.2
- pieceofcake2/phpcs-cakephp2: ^1.1
- pieceofcake2/phpstan-cakephp2: ^1.0
Suggests
- ext-gd: For GD-based image processing
- ext-imagick: For Imagick-based image processing
Provides
None
Conflicts
None
Replaces
This package is auto-updated.
Last update: 2026-10-16 09:34:09 UTC
README
The Imagine plugin is a CakePHP wrapper around the Imagine image manipulation library. It makes it easy to resize, crop and create thumbnails of images with a model behavior, and to serve signed image URLs with a helper and a component. This is a fork of burzum/cakephp-imagine-plugin for pieceofcake2/cakephp.
Documentation
- Website: https://pieceofcake2.github.io/imagine/ (日本語: https://pieceofcake2.github.io/imagine/ja/)
- Markdown: docs/README.md (日本語: docs/ja/README.md) (for AI tools and offline reading)
The Markdown documentation is also included in the Composer package, in the plugin's directory: plugins/Imagine/docs/README.md (the location depends on your installer-paths). Install the package with --dev if you only need it for development.
Requirements
- PHP 8.0+
- pieceofcake2/cakephp 2.12+
- GD (
ext-gd) or Imagick (ext-imagick) PHP extension
Installation
composer require pieceofcake2/imagine
Reporting Issues
Please open an issue on GitHub.
Contributing
See the contribution guidelines.
Origin
This package is a maintained fork of
burzum/cakephp-imagine-plugin
(burzum/cakephp-imagine-plugin on Packagist, last upstream version 1.0.6), originally by Florian
Krämer. It is maintained for CakePHP 2 on modern PHP by
pieceofcake2. Changes from the original are listed in the
commit history since the fork.
License
Copyright 2012 - 2014, Florian Krämer
The MIT License. See LICENSE.