Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Add the recommended Imaginary micro-service to optimise Photos thumbnail loading speed (which is painfully slow right now)

    Nextcloud
    3
    3
    1063
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • marcusquinn
      marcusquinn last edited by

      • https://docs.nextcloud.com/server/24/admin_manual/installation/server_tuning.html#previews
      • https://github.com/h2non/imaginary
      • https://github.com/h2non/imaginary#scalability

      We're not here for a long time - but we are here for a good time :)
      Jersey/UK
      Work & Ecommerce Advice: https://brandlight.org
      Personal & Software Tips: https://marcusquinn.com

      1 Reply Last reply Reply Quote 2
      • girish
        girish Staff last edited by

        Interesting, I guess this provides optimizations over imagemagik. There hasn't been any release since 2 years though - https://github.com/h2non/imaginary/releases/tag/v1.2.4 . I am not sure why nextcloud offloads basic functionality to some externa project of unknown maintenance state 😕

        1 Reply Last reply Reply Quote 4
        • vladimir.d
          vladimir.d last edited by

          By default, Nextcloud generates photo thumbnails on-demand that leads to slow Photos thumbnails load. To speed it up we’re using the Preview Generator app for Nextcloud to pre-generate previews regularly.

          First we set the default thumbnail sizes by using the "occ config" commands:

          sudo -u www-data /usr/bin/php /app/code/occ config:app:set --value="32 256" previewgenerator squareSizes
          sudo -u www-data /usr/bin/php /app/code/occ config:app:set --value="256 384" previewgenerator widthSizes
          sudo -u www-data /usr/bin/php /app/code/occ config:app:set --value="256" previewgenerator heightSizes
          

          Then we generated previews for all existent images:

          sudo -u www-data /usr/bin/php /app/code/occ preview:generate-all -vvv
          

          It took about 3 weeks on our host to generate preview images for 4Tb of data which takes additional 500Gb.

          Once it's finished we setup a cron job to generate previews:

          0 */6 * * * sudo -u www-data /usr/bin/php -f /app/code/occ preview:pre-generate
          

          TBH, it helped us a little but our Photos are still loading for 50-60 seconds and we are seeking any solution to speed it up.

          1 Reply Last reply Reply Quote 5
          • First post
            Last post
          Powered by NodeBB