Comments (7)
I think that you need an array of 'enabledPreviewProviders' in your config.php
https://github.com/owncloud/core/blob/master/config/config.sample.php#L1054
from core.
@phil-davis I have tried your method, but it did not work. The problem now may be with my environment compilation. I want to use a separate test page that generates previews to test if there are any issues with my environment. When I use the Thumbnailimage function, I found that the environment is normal, but I have not yet found which function and method owncloud uses to generate image miniaturization.
from core.
Looks more like a support question / request rather then a bug report -> https://central.owncloud.org/c/server/54
from core.
@iasdeoupxe @phil-davis
{"reqId":"ZdGFLFlDG5uQwSiZVVi3xAAAAME","level":0,"time":"2024-02-18T12:18:53+08:00","app":"OCUserSession::validateToken","method":"GET","url":"/remote.php/dav/files//Photos/Portugal.jpg?c=d02a9a5201e14d49277f3fb4e51e1ffa&x=32&y=32&forceIcon=0&preview=1","message":"token 215c75f5e3be3932f28922572f8d53f7550f450c4f5c970db6aea8311be6378432f524485369ebb736997db80e000e1b50de7ab4c102bc3fe4c750d34e1fddbb with token id 39 found, validating"}
{"reqId":"ZdGFLFlDG5uQwSiZVVi3xAAAAME","level":0,"time":"2024-02-18T12:18:53+08:00","app":"core","method":"GET","url":"/remote.php/dav/files//Photos/Portugal.jpg?c=d02a9a5201e14d49277f3fb4e51e1ffa&x=32&y=32&forceIcon=0&preview=1","message":"Generating preview for "//files/Photos/Portugal.jpg" with "OCPreviewJPEG""}
{"reqId":"ZdGFLFlDG5uQwSiZVVi3xAAAAME","level":0,"time":"2024-02-18T12:18:53+08:00","app":"core","method":"GET","url":"/remote.php/dav/files//Photos/Portugal.jpg?c=d02a9a5201e14d49277f3fb4e51e1ffa&x=32&y=32&forceIcon=0&preview=1","message":"OC_Image->loadFromFile, could not load"}
{"reqId":"ZdGFLFlDG5uQwSiZVVi3xAAAAME","level":0,"time":"2024-02-18T12:18:53+08:00","app":"core","method":"GET","url":"/remote.php/dav/files//Photos/Portugal.jpg?c=d02a9a5201e14d49277f3fb4e51e1ffa&x=32&y=32&forceIcon=0&preview=1","message":"OC_Image->fixOrientation() Orientation: -1"}
{"reqId":"ZdGFLK2MT2qIuXf5KhneVgAAAJE","level":0,"time":"2024-02-18T12:18:53+08:00","app":"OCUserSession::validateToken","method":"PROPFIND","url":"/remote.php/dav/files//Photos","message":"token 215c75f5e3be3932f28922572f8d53f7550f450c4f5c970db6aea8311be6378432f524485369ebb736997db80e000e1b50de7ab4c102bc3fe4c750d34e1fddbb with token id 39 found, validating"}
{"reqId":"ZdGFLFlDG5uQwSiZVVi3xAAAAME","level":0,"time":"2024-02-18T12:18:53+08:00","app":"webdav","method":"GET","url":"/remote.php/dav/files/*/Photos/Portugal.jpg?c=d02a9a5201e14d49277f3fb4e51e1ffa&x=32&y=32&forceIcon=0&preview=1","message":"Exception: HTTP/1.1 404 Not Found: {"Exception":"SabreDAVExceptionNotFound","Message":"","Code":0,"Trace":"#0 /home/owncloud/lib/composer/sabre/event/lib/WildcardEmitterTrait.php(89): OCADAVFilesPreviewPlugin->httpGet()
#1 /home/owncloud/lib/composer/sabre/dav/lib/DAV/Server.php(472): SabreDAVServer->emit()
#2 /home/owncloud/lib/composer/sabre/dav/lib/DAV/Server.php(253): SabreDAVServer->invokeMethod()
#3 /home/owncloud/apps/dav/lib/Server.php(348): SabreDAVServer->start()
#4 /home/owncloud/apps/dav/appinfo/v2/remote.php(31): OCADAVServer->exec()
#5 /home/owncloud/remote.php(165): require_once('/home/owncloud/...')
#6 {main}","File":"/home/owncloud/apps/dav/lib/Files/PreviewPlugin.php","Line":117}"}
After further investigation, I found that there was an issue with the generation of the preview file for the image. The file was not generated in the file thumbnail folder, and the error message above was reported in the log.
from core.
After several days of testing, it was found that only JPG format images cannot generate miniature images, while PNG and BMP formats have no issues.
from core.
jpg works also, see https://demo.owncloud.org/apps/files/?dir=/Photos&fileid=9 (login via demo:demo
).
Demo runs on 10.13.4 but you refrained from providing the ownCloud version on your system so this could make a difference. Otherwise probably environmental problems could be also responsible (Bugs in PHP, ImageMagick, ... of the environment).
from core.
@iasdeoupxe After a few days of debugging, I have found that the problem is probably in the Generating preview for "/* */files/Photos/Portugal. jpg" with "OC \ Preview \ JPEG" stage. This is because PNG format can generate and store thumbnails normally, but JPG format images cannot be generated, so there may be loading issues in the subsequent loading process. Is there any way for me to debug the generation of microfiles separately, similar to the getThumbnail function.
from core.
Related Issues (20)
- [QA] richdocuments app fails in 10.14.0 HOT 6
- Update Translation on ownCloud Instance HOT 3
- [QA] typical Photos from a smartphone are no longer rendered in the builtin image viewer HOT 9
- owncloud/server:10.13.4 - possible Table Prefix Chaos? HOT 1
- subfolder pane sorting by last modified function not working HOT 2
- PDF Preview not working HOT 10
- New WEB app broking share links. HOT 4
- [QA] received readonly federated shares cannot be renamed
- [QA] Previews fail for SVG images with gradients HOT 2
- OwnCloud freezes my system during first account creation HOT 2
- Discovery url returns url with incorrect port HOT 1
- Invalid signature EXPKEYSIG 4ABE1AC7557BEFF9 HOT 4
- License "AGPL-1.0" is a deprecated SPDX license identifier HOT 1
- 404 Error when trying to load a preview of the photo (JPG) HOT 4
- Possible wrong affected version on CVE-2024-26320 advisory HOT 2
- New Spanish variant es_ES has been created with very few translations HOT 4
- phpstan 1.11.0 is reporting Undefined offset
- sonar-analysis step is failing in drone CI HOT 1
- Federated share with known user leads to wrong message HOT 3
- owncloud 10.14.0 is broken when files_external app is removed HOT 4
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 core.