Can't specify preview generation sizes. Getting "Too many arguments" on occ

I’m trying to setup preview generator, following this guide But when i try to run the following command mentioned in the guide,

occ config:app:set previewgenerator widthSizes  --value="256 384"

I get

  Too many arguments, expected arguments "command" "app" "name".  

config:app:set [--output [OUTPUT]] [--value VALUE] [--update-only] [--] <app> <name>

I have already opened an issue in github, but it’s been some time without any reply from someone that can help solve this.

Am i doing something wrong?

I just ran this successfully, following the guidance in the readme for this app. Looks like you are formulating your command incorrectly. It should be:

./occ config:app:set --value="256 384" previewgenerator widthSizes
1 Like

Forgot to reply here, actually my command works also, it was just a problem with the alias for occ, that was stripping the double quotes at execution, i used the full path and it worked!

1 Like

Awesome! Glad you figured it out. :+1:

1 Like