Open Demian98 opened 2 years ago
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_x
andpreview_max_y
inconfig.php
(e.g., to512
), and change thepreviewgenerator
app parametersheightSizes
,squareSizes
andwidthSizes
as per the README (or better yet, to a low value each, e.g.512
,256
and512
respectively)
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
.
I used the commands from the documentation to generate previews just for some specific sizes:
Here is a screenshot from the database:![grafik](https://user-images.githubusercontent.com/77210091/169820612-cacef7fb-ed33-4d4b-8596-0ba6da7fab31.png)
Then I followed the instructions to delete the existing previews and regenerate:
your-nextcloud-data-directory/appdata_*/preview
directoryocc files:scan-app-data
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 :)