2014-05-15 17:16:05 +02:00
# Intervention Image
2014-09-02 20:30:01 +02:00
Intervention Image is a **PHP image handling and manipulation** library providing an easier and expressive way to create, edit, and compose images. The package includes ServiceProviders and Facades for easy **Laravel** integration.
2014-05-15 17:16:05 +02:00
[![Build Status ](https://travis-ci.org/Intervention/image.png?branch=master )](https://travis-ci.org/Intervention/image)
## Requirements
- PHP >=5.3
- Fileinfo Extension
2014-05-18 11:50:13 +02:00
## Supported Image Libraries
- GD Library (>=2.0)
- Imagick PHP extension (>=6.3.8)
2014-05-15 17:16:05 +02:00
## Getting started
2014-05-21 11:46:42 +02:00
- [Installation ](http://image.intervention.io/getting_started/installation )
2014-07-31 02:41:07 -04:00
- [Laravel Framework Integration ](http://image.intervention.io/getting_started/installation#laravel )
2014-05-15 17:16:05 +02:00
- [Official Documentation ](http://image.intervention.io/ )
## Code Examples
```php
// open an image file
$img = Image::make('public/foo.jpg');
// resize image instance
$img->resize(320, 240);
// insert a watermark
$img->insert('public/watermark.png');
// save image in desired format
$img->save('public/bar.jpg');
```
Refer to the [documentation ](http://image.intervention.io/ ) to learn more about Intervention Image.
2014-07-24 18:46:35 +02:00
## Contributing
Contributions to the Intervention Image library are welcome. Please note the following guidelines before submiting your pull request.
2014-07-24 18:49:06 +02:00
- Follow [PSR-0 ](http://www.php-fig.org/psr/psr-0/ ), [PSR-1 ](http://www.php-fig.org/psr/psr-1/ ) and [PSR-2 ](http://www.php-fig.org/psr/psr-2/ ) coding standards.
2014-07-24 18:46:35 +02:00
- Write tests for new functions and added features
- API calls should work consistently with both GD and Imagick drivers
2014-05-15 17:16:05 +02:00
## License
Intervention Image is licensed under the [MIT License ](http://opensource.org/licenses/MIT ).
2014-07-31 02:41:07 -04:00
Copyright 2014 [Oliver Vogel ](http://olivervogel.net/ )