Comments (19)
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.
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.
Ah yes. This is a bug in gallery (which has been fixed).
Well git is different since it is the development branch.
from previewgenerator.
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.
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.
It is fixed in gallery with nextcloud/gallery#187
This app can't fix gallery so for this tracker it is fixed 😉
from previewgenerator.
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.
@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.
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.
Feel free.
from previewgenerator.
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.
best is to run the ./occ preview:delete_old
command. As that will also remove them from the DB
from previewgenerator.
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.
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.
@benqrn, odd, it worked fine for me. No errors all traces gone.
from previewgenerator.
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.
@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.
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.
@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)
- OCP\Files\NotPermittedException: Could not create folder HOT 3
- Limit 'preview:pre-generate' to specific paths or users HOT 6
- proc_open(): Exec failed: No such file or directory at /snap/nextcloud/38457/htdocs/lib/private/Preview/Movie.php#143 HOT 1
- NC 28 Support
- GUI interface for first time run and cron necessary HOT 5
- Need support for Apple HEIF and HEIC for Nextcloud HOT 15
- `preview:pre-generate` ignores `.nomedia` in ancestor folders of the added/modified folder HOT 2
- Multithreading Support HOT 3
- Timestamp of thumbnail in video HOT 1
- preview generation fails:missing: "file" HOT 1
- very slow preview load and HTTP500 - Postgresql database index missing for storage+path_hash HOT 4
- Error: Source file could not be loaded HOT 7
- Optimization Python script HOT 3
- Make Previews progressive HOT 3
- Preview-Generator + Groupfolder + read-only Link-Share = Previews cannot be loaded (404)
- Preview photos as negatives HOT 5
- TypeError: OC_Image::getOrientation(): Return value must be of type int, array returned HOT 2
- [OCP\Files\NotPermittedException] Could not create folder "/appdata_ocfmw89yr7pg/preview/a/b/a/d/2/c/9/34634" Version 5.4.0 HOT 3
- PathHelper error when trying to generate for a specific folder HOT 2
- NON ISSUE need help to recover images from downloaded previews HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from previewgenerator.