divyeshz / asset-optimizer
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
Requires
- php: ^8.1
- intervention/image: ^3.6
- php-ffmpeg/php-ffmpeg: ^1.2
Requires (Dev)
- phpunit/phpunit: ^11.2
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.
-
Require the package:
composer require divyeshz/asset-optimizer
-
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');