helm icon indicating copy to clipboard operation
helm copied to clipboard

feat(nextcloud): add support of imaginary an externalPreviewProvider

Open wrenix opened this issue 1 year ago • 3 comments

Description of the change

Benefits

  • faster image rendering for preview
  • nextcloud container is not killed (e.g. OOM) if big and much preview images are generated

Possible drawbacks

Works for me

Checklist

wrenix avatar Aug 17 '24 00:08 wrenix

ping @jessebot / @provokateurin do you like to review?

wrenix avatar Sep 11 '24 16:09 wrenix

Sorry, I don't have the time for that atm. I hope I can do it at some point, but only at the beginning of next month the earliest.

provokateurin avatar Sep 11 '24 16:09 provokateurin

oh this is neat! May I ask what the difference between this and the preview generator app are? (I'm not against it btw, just want to learn more) I will review this more thoroughly as soon as I have a moment 🙏

jessebot avatar Sep 20 '24 09:09 jessebot

Thank you for working on this :rocket: Just wanted to point out that, with Nextcloud 30, the OC\Preview\Imaginary provider no longer generates PDF previews. It may be worth considering adding the new ImaginaryPDF provider to the Imaginary notes in the README.md file. See https://docs.nextcloud.com/server/latest/admin_manual/release_notes/upgrade_to_30.html#previews-for-pdf-files-with-imaginary Thanks again, looking forward to using it to speed up my (terribly slow) Nextcloud media previewing :heart:

SIMULATAN avatar Sep 27 '24 13:09 SIMULATAN

rebased on main and add docu in e393d908f51d040ae6040d32136a3f530614caa3 like @SIMULATAN suggested

wrenix avatar Sep 28 '24 16:09 wrenix

rebased, squashed und test added

wrenix avatar Oct 11 '24 21:10 wrenix

rebased - Does i interprate you @jessebot last comment correct, that i could merge it?

wrenix avatar Oct 22 '24 08:10 wrenix

It would be nice to add a test that generating the preview works (similar to how we test S3 in the job).

provokateurin avatar Oct 23 '24 15:10 provokateurin

Yes, it would be nice - i do not know when a preview generation is triggered (i believe in viewing)

wrenix avatar Oct 23 '24 15:10 wrenix

You can request a preview via https://github.com/nextcloud/server/blob/b5ac989ecd4e6f380af4699cb8c0aae872284459/core/openapi.json#L8178

provokateurin avatar Oct 23 '24 15:10 provokateurin

I found the bug, in the container (why setup of test does not run) ....

So here are the test online.

wrenix avatar Nov 22 '24 13:11 wrenix

rebased / updated - still ready to merge

wrenix avatar Dec 13 '24 13:12 wrenix

rebased

wrenix avatar Dec 17 '24 17:12 wrenix