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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Add the recommended Imaginary micro-service to optimise Photos thumbnail loading speed (which is painfully slow right now)

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

Scheduled Pinned Locked Moved Nextcloud
3 Posts 3 Posters 2.7k Views 3 Watching
  • 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.
    • marcusquinnM Offline
      marcusquinnM Offline
      marcusquinn
      wrote on last edited by
      #1
      • https://docs.nextcloud.com/server/24/admin_manual/installation/server_tuning.html#previews
      • https://github.com/h2non/imaginary
      • https://github.com/h2non/imaginary#scalability

      Web Design https://www.evergreen.je
      Development https://brandlight.org
      Life https://marcusquinn.com

      1 Reply Last reply
      2
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        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
        4
        • vladimir.dV Offline
          vladimir.dV Offline
          vladimir.d
          wrote on last edited by
          #3

          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
          5
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search