Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Latest commit

 

History

History
18 lines (14 loc) · 453 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 453 Bytes

ImageHelper

A wrapper around the popular Intervention Image library for common image manipulations extended with caching.

Getting started

  • composer require codeurs/imagehelper

Code Examples

use Codeurs\ImageHelper;

// Set the cache folder location
ImageHelper::setCacheFolder('cache/images');

// Resize an image and return the cached file location
$src = ImageHelper::fromPath('assets/image.png')
  ->resize(320, 240)
  ->src();