I recently set up Nextcloud, and so far I’m really enjoying it. With the exception of Gmail and Backblaze, I’m no longer using any online services that aren’t self-hosted on my own hardware; Nextcloud has allowed me to get rid of the last few Google services I was using.

One issue I’m having is that images I have uploaded to Nextcloud do not have thumbnails when the image size is large. My phone takes photos at 200MP, so this constitutes a significant number of my photos.

I’ve been researching the problem, and I think I need to set the following:

‘preview_max_x’ => null ‘preview_max_y’ => null ‘preview_max_filesize_image’ => -1 ‘preview_max_memory’ => -1

I’m running Nextcloud on a Proxmox hypervisor with 32 cores and 128GB of memory, so I’m not concerned about using system resources; I can always allocate more.

The issue I’m having is that I installed Nextcloud as a snap in Ubuntu Server. The last time I tried to use nextcloud.occ to change a configuration option, it set a string as an array, and triggered a bunch of php errors.

As far as I can tell, I need to do something like this:

sudo nextcloud.occ config:[something, maybe system]:set preview_max_x [some data goes here]

How do I format this so that nextcloud.occ inserts the variable into my php config properly? Any examples of a nextcloud.occ command would be very much appreciated.

  • maiskanzler@feddit.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I am not too sure about the snap version, but on docker at least all the configuration lives in a standard nextcloud config.php file that I can change. I think it also allows to import custom files to do proper overriding of values.

    About the confug options you listed. I don’t think they do what you think they do or I am misunderstanding you. According to the docs they do not limit what images previews are generated for, but rather what the size of the generated previews is.

    Off the top of my head, I don’t know where you could change the config to fit the behaviour to your expectations. Are you sure that preview generation is skipped for your large images at all, though? Maybe look into pregenerating the previews if you haven’t. It’s possible that on-the-fly creation of several preview sizes of your large images is happening, but simply too slow to notice. Is there something in the logs about it?