nextcloud / previewgenerator

Nextcloud app to do preview generation in the background.
https://apps.nextcloud.com/apps/previewgenerator
GNU Affero General Public License v3.0
450 stars 56 forks source link

Webp #295

Closed killiandt closed 2 years ago

killiandt commented 2 years ago

Hello, the generation of thumbnails does not work with .webp files. Does anyone have a solution?

Thanks Have a nice day Sincerely

st3iny commented 2 years ago

Webp previews should work out of the box. You just have to make sure that your version of GD also supports them.

Note that animated webp images do not work at the moment (ref https://github.com/nextcloud/server/issues/30029).

killiandt commented 2 years ago

Hi st3iny,

what is "GD" ?

I'm on a ubuntu server 21.10 / Nextcloud 23.0.3 / previewgenerator: 4.0.0 / files: 1.18.0 / viewer: 1.7.0.

I have make preview:generate-all & preview:pre-generate.

I have no preview in files but if I open webp file it's displayed in viewer.

killiandt commented 2 years ago

webp1

st3iny commented 2 years ago

GD (or libgd) is the library that we use to generate previews. Please run php -r 'var_dump(gd_info());' on your server and post the output. Also, please tell me which version of PHP you are using.

killiandt commented 2 years ago

I installed nextcloud with the snap. I don't seem to be able to run php commands directly in it, or I don't know how...

Nextcloud server packaged as a snap. It consists of:

Nextcloud 23
Apache 2.4
PHP 8.0
MySQL 8
Redis 6
mDNS for network discovery
st3iny commented 2 years ago

The snap package is out of my reach. I'm very sorry that I can't help you any further. My guess is that they package an old version of libgd that doesn't support webp images.

I saw that you already reached out to the maintainers of the snap package (ref https://github.com/nextcloud-snap/nextcloud-snap/issues/2069).

Closing because this can't be fixed by me.

moritz76 commented 2 years ago

Hello,

I am facing the same issue. (No snap installation)

Nextcloud Version: 23.0.5 php: 7.4 nginx: 1.21.6

Here is the output from the command: php -r 'var_dump(gd_info());'

array(14) { ["GD Version"]=> string(5) "2.3.0" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPEG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(true) ["XBM Support"]=> bool(true) ["WebP Support"]=> bool(true) ["BMP Support"]=> bool(true) ["TGA Read Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }