aboutsummaryrefslogtreecommitdiff
path: root/mediaapi
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-05-22 10:44:25 +0100
committerGitHub <noreply@github.com>2019-05-22 10:44:25 +0100
commite1ec98e248ab9cdaa5f648bad871994b7abcabc7 (patch)
treee0d94b98fe7ee3db1a9eee47240c2402d03be615 /mediaapi
parent74827428bd3e11faab65f12204449c1b9469b0ae (diff)
Update Docker files and remove references to gb (#703)
Fix Docker files which had been forgotten in #594 and update scripts and docs to remove references to gb. I also removed the `jenkins` directory which is outdated. We can revert f8d7e99 if we realise that it was a mistake to do so.
Diffstat (limited to 'mediaapi')
-rw-r--r--mediaapi/README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediaapi/README.md b/mediaapi/README.md
index 8d6cc627..baf5587f 100644
--- a/mediaapi/README.md
+++ b/mediaapi/README.md
@@ -18,7 +18,7 @@ See the sample below for image quality with nfnt/resize:
### bimg (uses libvips C library)
-Alternatively one can use `gb build -tags bimg` to use bimg from https://github.com/h2non/bimg (MIT-licensed) which uses libvips from https://github.com/jcupitt/libvips (LGPL v2.1+ -licensed). libvips is a C library and must be installed/built separately. See the github page for details. Also note that libvips in turn has dependencies with a selection of FOSS licenses.
+Alternatively one can use `go build -tags bimg` to use bimg from https://github.com/h2non/bimg (MIT-licensed) which uses libvips from https://github.com/jcupitt/libvips (LGPL v2.1+ -licensed). libvips is a C library and must be installed/built separately. See the github page for details. Also note that libvips in turn has dependencies with a selection of FOSS licenses.
bimg and libvips have significantly better performance than nfnt/resize but produce slightly less-sharp images. bimg uses a box filter for downscaling to within about 200% of the target scale and then uses Lanczos3 for the last bit. This is a much faster approach but comes at the expense of sharpness. (~295ms in total for pre-generating 32x32-crop, 96x96-crop, 320x240-scale, 640x480-scale and 800x600-scale from a given JPEG image on a given machine.)