The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

Image

intervention/image image

Image stats

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

View on GitHub →

Image handling and manipulation library with support for Laravel integration

Intervention Image

Intervention Image is a powerful PHP image handling and manipulation library designed to make it simple to create, edit, and compose images. It seamlessly integrates with Laravel, leveraging ServiceProviders and Facades to enhance functionality.

Main Features

  • Ease of Use: Provides a fluent and intuitive interface for image operations.
  • Integration: Fully compatible with the Laravel framework, allowing for quick setup and use within Laravel projects.
  • Flexibility: Supports both GD Library and Imagick, giving developers the freedom to choose based on their project requirements.

Requirements

  • PHP version 5.4 or higher.
  • Fileinfo PHP extension enabled.
  • GD Library (version 2.0 or higher) or Imagick PHP extension (version 6.5.7 or higher).

Installation & Basic Usage

To get started with Intervention Image, you can install the package via Composer:

composer require intervention/image

For Laravel integration and basic usage, you can follow these guides:

Here’s a quick snippet demonstrating basic operations:

$img = Image::make('public/foo.jpg'); // Open an image file
$img->resize(320, 240); // Resize image
$img->insert('public/watermark.png'); // Add a watermark
$img->save('public/bar.jpg'); // Save the modified image

For more detailed information, refer to the official documentation.

Contributing

Contributors are welcome to enhance the capabilities of Intervention Image. Adhere to the following:

  • Follow PSR-2 coding standards.
  • Include tests for new features and functions.
  • Ensure compatibility with both GD and Imagick drivers.

License

Licensed under the MIT License. Full details can be found in the license file.

Intervention Image continues to be a go-to choice for developers looking to handle and manipulate images efficiently in PHP and Laravel environments.

Cube

Laravel Newsletter

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


Intervention Image Related Articles

Manipulate Image URLs in Laravel with the Image Transform Package image

Manipulate Image URLs in Laravel with the Image Transform Package

Read article
Intervention Image image

Intervention Image

Read article
New Major Versions of Spatie Image and Laravel Media Library Released image

New Major Versions of Spatie Image and Laravel Media Library Released

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
Intervention Image v2 is released image

Intervention Image v2 is released

Read article
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
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
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing