mrbohem/laramage

This package is used for image manipulation and uploadation on multiple storage

V1.0.1 2025-04-07 13:36 UTC

This package is auto-updated.

Last update: 2025-04-07 13:37:42 UTC


README

Laramage is a Laravel-friendly image manipulation package built on top of Intervention Image v3. It allows you to easily read, resize, convert, and store images across different storage disks like local, public, and s3.

✨ Features

  • ✅ Read image from UploadedFile or file path
  • 🔧 Resize, scale, crop, and apply any Intervention method
  • 🔄 Convert image formats (e.g. JPEG, PNG, WebP)
  • 💾 Store image in any Laravel-supported filesystem

🧰 Requirements

📦 Installation

composer require mrbohem/laramage

🚀 Usage

use MrBohem\Laramage\Laramage;

Laramage::handler()
        ->load('public/images/product/main.png')
        ->convert('toWebp')
        ->apply('scale', 600, 600)
        ->store(directory: 'processed')
        ->getPath();