Settings for preview sizes are ignored
I used the commands from the documentation to generate previews just for some specific sizes:
./occ config:app:set --value="32 64 1024" previewgenerator squareSizes
./occ config:app:set --value="64 128 1024" previewgenerator widthSizes
./occ config:app:set --value="64 256 1024" previewgenerator heightSizes
Here is a screenshot from the database:

Then I followed the instructions to delete the existing previews and regenerate:
- Remove the
your-nextcloud-data-directory/appdata_*/previewdirectory - run
occ files:scan-app-data - Regenerate with
occ preview:generate-all
But these settings have no effect. I still get previews in many sizes up to 4096 after running the occ preview:generate-all.
Please let me know what I'm doing wrong, every help or hint is welcome :)
Those 3 settings only affect the these commands you run manually occ preview:generate-all and occ preview:pre-generate. They do not affect the preview when a user click on the image.
The only way to limit preview always is listed on the second step of the very last part of the readme.md, i.e. I want to reset/regenerate all previews.
Optional: change parameters
preview_max_xandpreview_max_yinconfig.php(e.g., to512), and change thepreviewgeneratorapp parametersheightSizes,squareSizesandwidthSizesas per the README (or better yet, to a low value each, e.g.512,256and512respectively)
Furthermore, previewgenerator only generates 4 sizes, 64, 256, 1024 and 4096. Ref: patch ce10f8b
Even worse, from my experience, NC never returns a preview less than 1024 anyway. The only meaningful sizes to be pregenerated are 1024 and 4096.