emtiazzahid / laravel-rat
A package to bulk image resize in a directory
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/emtiazzahid/laravel-rat
Requires
- php: ^7.4|^8.0
- ext-gd: *
- intervention/image: dev-master
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
Resize and optimize all of your images in certain folder by CLI
Installation
You can install the package via composer:
composer require emtiazzahid/laravel-rat
Usage
Resize Images
Resize images to specified dimensions while maintaining aspect ratio:
php artisan rat:run
Optimize Images
Optimize image file size by adjusting quality/compression (keeps original resolution):
php artisan rat:optimize
Undo Changes
Restore images from backup after resize or optimize operations:
php artisan rat:undo
Safe Mode: All commands now include safe mode by default, creating backups before processing. Backups are stored in a .rat-backup
folder within the target directory.
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email emtiazzahid@gmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
TODO
- ✓ Image optimization (Added rat:optimize command)
- ✓ Undo action (Added rat:undo command with backup system)
- Image resize with model iteration