Giter Site home page Giter Site logo

Comments (19)

mikedolx avatar mikedolx commented on May 11, 2024

I can confirm that. I have the same behaviour. I run the command via cron, and see the generated appdata folder, but as soon as i open the gallery the "on demand" generation of preview pictures starts.

from previewgenerator.

benqrn avatar benqrn commented on May 11, 2024

I found this page - https://www.c-rieger.de/preview-generator-previews-jumping-up-as-popcorn/
even though it says to use the apps that are already installable through the owncloud app manager, I followed the instructions anyway to manually download the app and unzip it inside the app folder, and the gallery is now working as expected.

It seems that the current git master for Gallery 16.0.0 is NOT the same version of the Gallery app that is included with nextcloud's base install, despite having the exact same version. Something is different and on-demand previews no longer use the userdir/thumbnails folder, they all are pulled or added to the appdata/preview folder.

I also had to clear any references to the appdata/preview folder in the file cache DB table because the nextcloud log was throwing errors about missing image previews (using occ to do a file cleanup did not help).

So I have it working now, but an explanation is required, what is different about the bundled Gallery app and the same app and app version from Git.

from previewgenerator.

rullzer avatar rullzer commented on May 11, 2024

Ah yes. This is a bug in gallery (which has been fixed).
Well git is different since it is the development branch.

from previewgenerator.

pieter-groeneweg avatar pieter-groeneweg commented on May 11, 2024

Before you close. The fix is not yet in 16.0.0 as provided out of the box isn't it.
What fixed issue # in nextcloud/gallery are we talking about?

from previewgenerator.

benqrn avatar benqrn commented on May 11, 2024

Yes, it may be fixed in git but version 16.0.0 being bundled in Nextcloud and version 16.0.0 here are not the same, and Gallery in Nextcloud is not 'fixed'.

from previewgenerator.

rullzer avatar rullzer commented on May 11, 2024

It is fixed in gallery with nextcloud/gallery#187

This app can't fix gallery so for this tracker it is fixed 😉

from previewgenerator.

benqrn avatar benqrn commented on May 11, 2024

Is that issue with IPreview saying the fix won't be bundled by default until Nextcloud 12? It's not clear if at some point the default install for Nextcloud 11 will be fixed.

from previewgenerator.

rullzer avatar rullzer commented on May 11, 2024

@benqrn well depends on @oparoz but my bet is on NC12. You could apply the patch from the PR yourself if you are up for it.

from previewgenerator.

benqrn avatar benqrn commented on May 11, 2024

Should I raise on issue on nextcloud/gallery that Gallery ver 16.0.0 in git and 16.0.0 bundled in NC 11 do not match? That really is the issue I'm looking for to be solved, because if you install the previewgenerator plugin with a stock NC11 build, it will not work properly unless you go get 16.0.0 of Gallery from git.

from previewgenerator.

rullzer avatar rullzer commented on May 11, 2024

Feel free.

from previewgenerator.

pieter-groeneweg avatar pieter-groeneweg commented on May 11, 2024

I am ready to learn some.. ;)

I have made the patches Now I am probably asking stupid things... but folder /user/thumbnails can be purged? as it now creates thumbs in /data/appdata_instanceid? Do I need to do anything else (in DB?)

from previewgenerator.

rullzer avatar rullzer commented on May 11, 2024

best is to run the ./occ preview:delete_old command. As that will also remove them from the DB

from previewgenerator.

pieter-groeneweg avatar pieter-groeneweg commented on May 11, 2024

awesome! Thanks!

Would be a good idea to add all these occ commands to the description in apps.nextcloud.com? (also for other apps using this feature). Or did I miss a few paragraphs in the manual? This information is really useful.
The more I discover each day, the more liking is turning into loving Nextcloud... :)

from previewgenerator.

benqrn avatar benqrn commented on May 11, 2024

the preview:delete_old command says (in the occ help) it does not work on NC11, I agree it doesn't seem to do anything. I had to clean up the db file cache manually, and also remove the user/thumbnail folders manually.

from previewgenerator.

pieter-groeneweg avatar pieter-groeneweg commented on May 11, 2024

@benqrn, odd, it worked fine for me. No errors all traces gone.

from previewgenerator.

AND51 avatar AND51 commented on May 11, 2024

Hello,

Unfortunately, I would like to un-install previewgenerator, too. Like @benqrn said, the delete_old command did not produce any output, even with -v. However, I was able to detect severe activity with strace. I updated it to 1.0.3 an hour ago and tried it again.

What steps does delete_old do? The nextcloud/data/appdata_XXX/preview folder still contained plenty of previews. I delete everything inside this folder. The MySQL-table "oc_preview_genereation" is empty, I don't know how this was before. Moreover, I have no user/thumbnail directory which irritates me.

It would be nice if you can give me (and others) a short checklist for un-installing this app without leaving any orphaned files.

By the way, the created previews in appdata_XXX/preview had *.png extension, but imagemagick identified every picture as JPEG. Is this normal?

from previewgenerator.

rullzer avatar rullzer commented on May 11, 2024

@AND51 the just disable the previewgenerator app and then it is disabled. The app does not keep its own data. It just requests the previews from the server. So it is not this app that stores the previews in appdata_**/preview it is the server code. The server also stores the previews there that are generated on demand.

@benqrn it does not say that the command does not work on NC11. That command just cleansup all the old thumbnail folders. Since there were big issues with shared previews and all. Unfortutnaly the gallery app does not yet use it as we did not have time to update that.

@AND51 no they should not all be png... I'll look into that!

from previewgenerator.

oparoz avatar oparoz commented on May 11, 2024

no they should not all be png... I'll look into that!

Actually, this is how it's been implemented in the Preview class. I'm guessing so that it doesn't have to care about file extensions, but it's pretty odd.

from previewgenerator.

rullzer avatar rullzer commented on May 11, 2024

@oparoz yes actually this has been it for a long time I think. But it is still odd. I mean it doesn't matter when we stream it since it is never accessed directly. But still odd ;)

from previewgenerator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.