Image handling and manipulation library with support for Laravel integration

intervention/image image

intervention/image stats

Downloads
106.9M
Stars
13,434
Open Issues
387
Forks
1,521

View on GitHub →

Intervention Image Readme


Intervention Image

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.

Requirements

  • PHP >=5.4
  • Fileinfo Extension

Supported Image Libraries

  • GD Library (>=2.0)
  • Imagick PHP extension (>=6.5.7)

Getting started

Code Examples

// 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 official documentation to learn more about Intervention Image.

Contributing

Contributions to the Intervention Image library are welcome. Please note the following guidelines before submitting your pull request.

  • Follow PSR-2 coding standards.
  • Write tests for new functions and added features
  • API calls should work consistently with both GD and Imagick drivers

License

Intervention Image is licensed under the MIT License.

Copyright 2017 Oliver Vogel

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Intervention Image Related Articles

Intervention Image v2 is released image

Intervention Image v2 is released

Read article
Blade Component to Serve Images and Download Files image

Blade Component to Serve Images and Download Files

Read article
Scan Machine-Readable Documents with Identity Documents for Laravel image

Scan Machine-Readable Documents with Identity Documents for Laravel

Read article
Laravel Favicon Package image

Laravel Favicon Package

Read article
Laravel ImageUp image

Laravel ImageUp

Read article
Plug and Play Avatars in Laravel with Laravolt image

Plug and Play Avatars in Laravel with Laravolt

Read article
Laravel Forge logo

Laravel Forge

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Forge
Larafast: Laravel SaaS Starter Kit logo

Larafast: Laravel SaaS Starter Kit

Larafast is a Laravel SaaS Starter Kit with ready-to-go features for Payments, Auth, Admin, Blog, SEO, and beautiful themes. Available with Vue and Livewire stacks.

Larafast: Laravel SaaS Starter Kit
Rector logo

Rector

Your partner for seamless Laravel upgrades, cutting costs, and accelerating innovation for successful companies

Rector
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $7500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift