Code Monkey home page Code Monkey logo

Comments (7)

phil-davis avatar phil-davis commented on June 14, 2024

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.

Xipro avatar Xipro commented on June 14, 2024

@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.

iasdeoupxe avatar iasdeoupxe commented on June 14, 2024

Looks more like a support question / request rather then a bug report -> https://central.owncloud.org/c/server/54

from core.

Xipro avatar Xipro commented on June 14, 2024

@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.

Xipro avatar Xipro commented on June 14, 2024

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.

iasdeoupxe avatar iasdeoupxe commented on June 14, 2024

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.

Xipro avatar Xipro commented on June 14, 2024

@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)

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.