Karla is an ImageMagick wrapper written in PHP with support for method chaining.
✨ Now with ImageMagick 7 support! Automatically detects and works with both ImageMagick 6 and 7.
- PHP 8.0+ (8.2+ recommended)
- ImageMagick 6.x or 7.x
- PHP extensions: pcre, SPL (default in most distributions)
- shell_exec() must be enabled
composer require localgod/karlause Karla\Karla;
$karla = new Karla('/path/to/imagemagick/');
$karla->convert()
->input('photo.jpg')
->resize(800, 600)
->output('photo-resized.jpg')
->execute();See the documentation for more examples and usage details.
Contributions are welcome! See CONTRIBUTE.md for development setup, testing guidelines, and how to submit pull requests.
