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.
v1.0.0
2024-06-19 06:13 UTC
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-04-09 13:47:31 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');