-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI batch resize #70
Comments
I'm following up on this feature request. Currently, the bulk resize functionality in the control panel (under It would be extremely useful if the bulk resize could be performed at the volume level, and even better using a CLI command. Do you have any updates or plans for addressing this issue in Craft CMS 5? |
Added the console command for the next release. To get this early, run
Supply either a ./craft image-resizer/resize/bulk --volume=general,gallery
./craft image-resizer/resize/bulk --folder-id=1628,567 |
Thank you for the addition! However, are you sure the console command was actually pushed? After updating to ./craft image-resizer/resize/bulk --volume=images
Unknown command: image-resizer/resize/bulk
Caused by: Exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "image-resizer/resize/bulk".'
in /var/www/html/vendor/yiisoft/yii2/base/Module.php:561
Stack trace:
#0 /var/www/html/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('image-resizer/r...', Array)
#1 /var/www/html/vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction('image-resizer/r...', Array)
#2 /var/www/html/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction('image-resizer/r...', Array)
#3 /var/www/html/vendor/craftcms/cms/src/console/Application.php(122): yii\console\Application->handleRequest(Object(craft\console\Request))
#4 /var/www/html/vendor/yiisoft/yii2/base/Application.php(384): craft\console\Application->handleRequest(Object(craft\console\Request))
#5 /var/www/html/craft(13): yii\base\Application->run()
#6 {main}
Failed to execute command ./craft image-resizer/resize/bulk --volume=images: exit status 1 Additionally, I couldn't find this command in the plugin's source code. Could you confirm whether it is included? |
Whoops, you're right, simply forgot to push that merge. Let me know how that goes? |
Thanks, I can confirm that it works now! |
What are you trying to do?
I am currently trying to import a few hundred images via the CLI. It would be great to run batch resize via CLI, instead of having to log into the control panel.
What's your proposed solution?
Add a CLI command :)
Additional context
No response
The text was updated successfully, but these errors were encountered: