1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-30 18:27:36 +01:00
intervention_image/README.md

56 lines
1.9 KiB
Markdown
Raw Normal View History

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
2017-06-30 17:51:00 +02:00
[![Latest Version](https://img.shields.io/packagist/v/intervention/image.svg)](https://packagist.org/packages/intervention/image)
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)
2017-07-04 18:10:28 +02:00
[![Monthly Downloads](https://img.shields.io/packagist/dm/intervention/image.svg)](https://packagist.org/packages/intervention/image/stats)
2014-05-15 17:16:05 +02:00
## Requirements
2015-06-28 17:55:12 +02:00
- PHP >=5.4
2014-05-15 17:16:05 +02:00
- Fileinfo Extension
2014-05-18 11:50:13 +02:00
## Supported Image Libraries
- GD Library (>=2.0)
2014-11-13 12:37:56 +01:00
- Imagick PHP extension (>=6.5.7)
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)
- [Laravel Framework Integration](http://image.intervention.io/getting_started/installation#laravel)
2017-07-04 18:10:28 +02:00
- [Basic Usage](http://image.intervention.io/use/basics)
2014-05-15 17:16:05 +02:00
## 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');
```
2017-07-04 18:10:28 +02:00
Refer to the [official documentation](http://image.intervention.io/) to learn more about Intervention Image.
2014-05-15 17:16:05 +02:00
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-10-23 20:51:03 +02:00
- Follow [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).
2017-06-30 17:52:27 +02:00
Copyright 2017 [Oliver Vogel](http://olivervogel.com/)