Skip to content
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

Image variant console command doesn't work without asset volume handle #350

Closed
simonkuran opened this issue Jul 28, 2022 · 1 comment
Closed
Labels

Comments

@simonkuran
Copy link

Describe the bug

php craft image-optimize/optimize/create doesn't do anything for me like the docs suggest it would. It just outputs "Creating optimized image variants" and stops. I have to run php craft image-optimize/optimize/create myVolumeHandle for each of my volumes to generate images.

To reproduce

Run php craft image-optimize/optimize/create

Expected behaviour

All asset volumes with an ImageOptimize field get their variants generated.

Versions

  • Plugin version: 4.0.2
  • Craft version: 4.2.0.2
@simonkuran simonkuran added the bug label Jul 28, 2022
khalwat added a commit that referenced this issue Oct 19, 2022
…CLI command did not properly optimize all images ([#350](#350))
@khalwat
Copy link
Contributor

khalwat commented Oct 19, 2022

Addressed in: 50d30d3

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-imageoptimize": "dev-develop-v4 as 4.0.3”,

Then do a composer clear-cache && composer update

@khalwat khalwat closed this as completed Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants