divyeshz/asset-optimizer

There is no license information available for the latest version (v1.0.0) of this package.

A library for optimizing images, videos, and audio, with thumbnail creation and storage features.

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/divyeshz/asset-optimizer

v1.0.0 2024-06-19 06:13 UTC

This package is not auto-updated.

Last update: 2026-01-15 12:48:32 UTC


README

A PHP library for optimizing images, videos, and audio, with thumbnail creation and storage features. This library is designed to work seamlessly with Laravel and other PHP frameworks.

Features

  • Optimize images with custom quality settings
  • Optimize videos and resize them
  • Optimize audio files
  • Create thumbnails for images and videos

Installation

You can install this package via Composer.

  1. Require the package:

    composer require divyeshz/asset-optimizer
  2. Publish the configuration file:

    php artisan vendor:publish --provider="AssetOptimizer\AssetOptimizerServiceProvider"

Usage

use AssetOptimizer\AssetOptimizer;

$assetOptimizer = new AssetOptimizer();
$assetOptimizer->optimizeImage('/path/to/your/image.jpg', '/path/to/your/destination/image.jpg');