Comments (7)
What is worse is that even with enable_previews => false in config.php the preview folder is growing too
from server.
I may have miss understood your last comment. There is a difference between "we need to generate the blurhash after preview generation" and "we need to always generate a blurhash (after causing a preview generation)"
To be clearer, blurhash generation should not trigger preview generation ;)
from server.
Can confirm.
Steps to reproduce:
- Connect desktop client to Nextcloud
- Copy an image
- See the post request for the bulk upload endpoint
- Max Preview + 256er Previews are generated
To monitor the preview folder for create events:
inotifywait -m -r -e create /path/to/preview/folder
Output:
preview/1/0/ CREATE,ISDIR a
preview/1/0/a/b/2/6/9/39539/ CREATE 2560-1440-max.jpg
preview/1/0/a/b/2/6/9/39539/ CREATE 256-144.jpg
preview/b/5/7/ CREATE,ISDIR 7
preview/b/5/7/7/2/e/7/39548/ CREATE 1920-1080-max.jpg
preview/b/5/7/7/2/e/7/39548/ CREATE 256-144.jpg
preview/e/4/ CREATE,ISDIR 9
preview/e/4/9/f/1/7/b/39556/ CREATE 2559-1599-max.jpg
preview/e/4/9/f/1/7/b/39556/ CREATE 256-160.jpg
preview/c/a/b/ CREATE,ISDIR 8
preview/c/a/b/8/c/3/7/39565/ CREATE 1920-1080-max.jpg
preview/c/a/b/8/c/3/7/39565/ CREATE 256-144.jpg
preview/7/1/ CREATE,ISDIR c
preview/7/1/c/7/2/2/e/39573/ CREATE 1920-1200-max.png
preview/7/1/c/7/2/2/e/39573/ CREATE 256-160.png
That could be
, however adding a return before getPreview had no effect on my end.from server.
from server.
What is worse is that even with enable_previews => false in config.php the preview folder is growing too
I dropped 4 images on my desktop app and
root@maqueta-nextcloud-backend2:~# inotifywait -m -r -e create /disco_datos_nextcloud/nextcloud_data/appdata_XXX/preview/
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
/disco_datos_nextcloud/nextcloud_data/appdata_XXX/preview/5/6/1/ CREATE,ISDIR f
/disco_datos_nextcloud/nextcloud_data/appdata_XXX/preview/0/3/9/ CREATE,ISDIR 7
/disco_datos_nextcloud/nextcloud_data/appdata_XXX/preview/4/7/a/f/ CREATE,ISDIR d
/disco_datos_nextcloud/nextcloud_data/appdata_XXX/preview/7/f/8/2/ CREATE,ISDIR f
I'm on nc 29.0.2
from server.
We indeed need to generate the blurhash after the preview generation:
- emit an event when a preview is created with the original and preview File objects
server/lib/private/Preview/Generator.php
Lines 77 to 87 in 0ddfe9e
- in the listener generate and update the blurhash metadata
from server.
@artonge
I may have miss understood your last comment. There is a difference between "we need to generate the blurhash after preview generation" and "we need to always generate a blurhash (after causing a preview generation)"
from server.
Related Issues (20)
- Expose egulias/email-validator via OCP / public api
- File template rework
- [Bug]: nextcloud 29.0.3 mail_smtpmode sendmail doesn't fork /usr/sbin/sendmail HOT 2
- [Bug]: User menu in the header doesn't follow design changes
- [Bug]: can't access created SMB shares with manually entered credentials stored in database
- Design improvements to login screen footer
- [Bug]: dav:sync-system-addressbook is consuming a lot of memory
- [Bug]: move shared folder HOT 2
- [Bug]: Hidden folders and files until zoom out HOT 2
- [Bug]: "Could not find resource text/js/.js to load"
- Logs flooded with "sem_get(): Failed for key 0xa11: Function not implemented at ..." HOT 3
- [Bug]: unable to create new app password manually HOT 1
- Postgres Performance Improvement of fulltextsearch file provider for DB operations via appropriate indexing of oc_filecache
- Share images or videos via the Share Menu on mobile (browser) to save directly to the gallery HOT 1
- [Bug]: Apache log reports AH01630: client denied by server configuration: `./data/.ocdata` HOT 1
- [Bug]: LDAP Groups cannot be synced from occ cli
- [Bug]: Nextcloud only downloads .php.html files HOT 4
- [Bug]: Move files in the browser doesn't work
- [Bug]: iphone display error - empty content HOT 1
- i18n: Source strings are not understandable for translators and need improvements 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 server.