Download the PHP package kenura/imagick without Composer
On this page you can find all versions of the php package kenura/imagick. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kenura/imagick
More information about kenura/imagick
Files in kenura/imagick
Package imagick
Short Description Image resizer, compressor, and watermark adder
License MIT
Informations about the package imagick
Imagick Image Processor
A powerful and easy-to-use PHP library for image processing using the GD extension. Transform, compress, watermark, and optimize images with just a few lines of code.
โจ Features
- ๐ผ๏ธ Image Resizing - Maintain aspect ratios automatically
- ๐๏ธ Smart Compression - Compress to target file sizes
- ๐ท๏ธ Watermarking - 9 preset positions with diagonal-based scaling
- ๐จ Opacity Control - Add transparency to images
- ๐ WebP Conversion - Modern format with superior compression
- โก Combined Operations - Efficient multi-step workflows
๐ Requirements
- PHP 8.1 or higher
- GD extension (usually included with PHP)
ext-imagickversion 3.7 or higher
๐ฆ Installation
Install via Composer:
๐ Quick Start
๐ Methods
Core Methods
resizeImage()
Resize images while maintaining aspect ratio.
compressToJpg()
Compress images to a target file size.
addWatermark()
Add watermarks with flexible positioning.
Positions: center, top, bottom, left, right, top-left, top-right, bottom-left, bottom-right
addOpacity()
Adjust image transparency (output as PNG).
convertToWebP()
Convert images to modern WebP format.
Combined Operations
resizeAndCompress()
Resize and compress in one step.
resizeWatermarkAndCompress()
Complete processing pipeline.
๐งช Testing
This library includes both manual example scripts and automated tests.
Manual Examples
Run example scripts to see the library in action:
Automated Tests
Run the full PHPUnit test suite:
The automated tests run on every push via GitHub Actions, testing across PHP 7.4, 8.0, 8.1, 8.2, and 8.3.
๐ Documentation
For detailed guides and API reference, visit the full documentation.
- Installation Guide
- Quick Start
- Resizing Images
- Compressing Images
- Adding Watermarks
- WebP Conversion
- API Reference
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ค Author
Kenura R. Gunarathna
- Email: [email protected]
- GitHub: @Kenura-R-Gunarathna
๐ Acknowledgments
Thanks to everyone using this library! Your feedback and contributions help make it better.
All versions of imagick with dependencies
ext-imagick Version ^3.7