How can I tell if NC is using imaginary?

Nextcloud version (eg, 20.0.5): 23.0.4

Using the official NC docker image.

I have added this to my config.php:

  'enabledPreviewProviders' => [
  'preview_imaginary_url' => 'http://imaginary:9000',

and I am running an imaginary service within the same docker network as NC.

Thumbnail generation seesm very fast, however, I’m not positive that it’s just that way as is, or if it’s due to using the imaginary service; is there some way to see for sure whether NC is in fact making use of imaginary now that I’ve added it to the config?

I have tried looking in NC logs, but see nothing that lets me know for sure?


Imaginary is only available starting with Nextcloud 24

@szaimen oh wow, then I’m very impressed at how fast the thumbs are loading already! lol

Will there be a way to see in logs if imaginary is being used, in version 24?


Others might find it useful to have the version availability mentioned on the page I found the info on: Server tuning — Nextcloud latest Administration Manual latest documentation

Feel free to add the version here: Sign in to GitHub · GitHub
Apart from that, the doc link that you sent refers to Nextcloud 24. What you should have used is or

ok, I didn’t realize that I was using the wrong help docs.

I’m using the :latest tag to pull the image, and in the URL of the help docs link I posted also contains “latest” in it. I assumed it was the proper one to use.

Regarding my original question; will we be able to verify via the logs when imaginary is being used to fetch the images?

Just an added note: I unselected the “Solution” since it didn’t really answer the question I directly asked: “how to tell if NC is using imaginary”.

Granted I’m using the wrong version, but I did still ask a couple more times if v24 will do so, and still have not received an answer to it.

I would like to know this for when I do end up upgrading to v24, and I also feel it would be a useful answer to others either now or somewhere down the road…

1 Like

Same here. Would like to know, if and how imaginary is working together with nc.

I’m on Nextcloud 24.0.1 with tons of photos. I’m using preview-generator to pre generate previews. Otherwise it won’t be handy to use the cloud.

I’ve created another docker container with imaginary beside the nexcloud container and I’ve edited the config.php as described in the manual.

How can i see that imaginary is working as expected?

And which use case will imaginary speed up?
Will it speed up the preview generation with the preview-generator app?
Or will it speed up the preview provision, eg if a folder with a large amount of images will be browsed?

Some detailed answers would be fine here.

Thanks in advance.

For me, i’ve deactivated imaginary again. It neither seemed to speed up the preview generation with preview generator nor seemed to speed up the browsing experience.

Instead of getting the expected advantages, i got a lot of timeout issues and other issues in the log, with the effect, that i’ve seen some image loading errors in the browser. With deactivating imaginary, the errors have gone away.

Maybe i’ll give imaginary a retry later though, if it will be clearer what imaginary is doing in the background.