PHPackages                             getgrav/image - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. getgrav/image

ActiveLibrary[Image &amp; Media](/categories/media)

getgrav/image
=============

Image handling

v4.1.0(9mo ago)2113.9k↓24%1MITPHPPHP ^7.2 || ^8.0CI passing

Since Dec 4Pushed 9mo agoCompare

[ Source](https://github.com/getgrav/Image)[ Packagist](https://packagist.org/packages/getgrav/image)[ Docs](https://github.com/Gregwar/Image)[ RSS](/packages/getgrav-image/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (43)Used By (1)

Gregwar's Image class
=====================

[](#gregwars-image-class)

[![Build status](https://github.com/Gregwar/Image/actions/workflows/test.yml/badge.svg)](https://github.com/Gregwar/Image/actions/workflows/test.yml)[![paypal](https://camo.githubusercontent.com/e1ff554a09e8e92bef25abc553ff05b88f45afd695877cf12f3a46558ef65b2e/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YUXRLWHQSWS6L)

The `Gregwar\Image` class purpose is to provide a simple object-oriented images handling and caching API.

Installation
============

[](#installation)

With composer :

```
{
    ...
    "require": {
        "gregwar/image": "2.*"
    }
}
```

Usage
=====

[](#usage)

Basic handling
--------------

[](#basic-handling)

Using methods chaining, you can open, transform and save a file in a single line:

```
