Repository navigation
[full-ci] thumbnails: add libvips based thumbnail generator - #10310
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
65a94cc to
52ea02a
Compare
26ff408 to
87b2b13
Compare
c349695 to
38581a6
Compare
|
The acceptance test are currently still using the native go thumbnailer. We might want to change that to test the libvips variant instead in a future PR |
|
I just compiled ocis on Mac (Intel) StepsAdd Then it compiles sucessfully and the thumbnails are generated. First impression: 🚀 |
38581a6 to
4cb5838
Compare
micbar
left a comment
There was a problem hiding this comment.
Awesome! Tested it locally. I see no regressions. 🚀
checked on mac (m1) - works fine 👍 |
|
I just found an issue with rendering thumbnails for txt files. 🤦♂️ . Working on it ... |
|
I tried to run e2e test which checks thumbnail and preview.
How to run: to enable e2e test in CI please rebase (e2e tests were disabled) #10325 |
Processor is now part of the generator. This should make it possible to implement thumbnail generators that do not depend on the 'imaging' module.
Move code using the 'kovidgoyal/imaging' package to separate files to make it easier to create alternative implementations based on build tags.
Can be enabled by setting the 'enable_vips' tag on 'go build'
To build with libvips support use 'make -C ocis build ENABLE_VIPS=true'
As libvips is not available as a static library we can no longer create a statically linked ocis binary for the docker images when libvips is enabled. We also need to make sure that the base images used for building ocis needs to match the image where ocis is installed when creating a shared binary.
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Co-authored-by: Martin <[email protected]>
For GeoGebra files we where still using the imaging package to decode the embedded png, but handed it of to vips for scaling, which can't work. Now we use vips for decoding the image as well.
96eef5f to
db6453b
Compare
db6453b to
ced6635
Compare
|
@ScharfViktor Ok. I rebased. e2e test seem to have succeeded now. |
I have VIPS installed with MacPorts. Hope to see support enabled in a future release so I can test without building from source. |




Needs: owncloud-ci/golang#149To improve performance (and to be able to support a wider range of images formats in the future)
the thumbnails service is now able to utilize libvips (https://www.libvips.org/) for generating thumbnails.
Enabling the use of libvips is implemented as a build-time option which is currently disabled for the
"bare-metal" build of the ocis binary and enabled for the docker image builds.
See README change for more details.