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

v0.0.1 2022-04-23 17:46 UTC

This package is auto-updated.

Last update: 2025-10-19 19:03:00 UTC


README

Latest Version on Packagist Total Downloads

Resize and optimize all of your images in certain folder by CLI

screenshot1.png screenshot2.png

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