An open API service indexing awesome lists of open source software.

https://github.com/dieterholvoet/oc-imageresizer-plugin

Provides an easy way to serve resized images and cache the result.
https://github.com/dieterholvoet/oc-imageresizer-plugin

octobercms octobercms-plugin

Last synced: 5 months ago
JSON representation

Provides an easy way to serve resized images and cache the result.

Awesome Lists containing this project

README

          

oc-imageresizer-plugin
======================

[![Latest Stable Version](https://poser.pugx.org/dieterholvoet/oc-imageresizer-plugin/v/stable)](https://packagist.org/packages/dieterholvoet/oc-imageresizer-plugin)
[![Total Downloads](https://poser.pugx.org/dieterholvoet/oc-imageresizer-plugin/downloads)](https://packagist.org/packages/dieterholvoet/oc-imageresizer-plugin)
[![License](https://poser.pugx.org/dieterholvoet/oc-imageresizer-plugin/license)](https://packagist.org/packages/dieterholvoet/oc-imageresizer-plugin)

> Provides an easy way to resize images and cache the result.

## Why?
- Serve images in the dimensions they are displayed on the webpage, to
prevent wasting resources
- Convert an image path to a full url
- Can be used in code and in Twig

## Installation

This package requires PHP 7.1 and OctoberCMS. It can be
installed using Composer:

```bash
composer require dieterholvoet/oc-imageresizer-plugin
```

## License
Distributed under the MIT License. See the [LICENSE](LICENSE.md) file
for more information.