Skip to content

Commit a107201

Browse files
committed
feat(#305, #309, #308, #305. #284)
1 parent 73dd94a commit a107201

19 files changed

+109
-1414
lines changed

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ services:
66
dist: trusty
77

88
go:
9-
- 1.12.x
10-
- 1.11.x
9+
- 1.14.x
10+
- 1.13.x
1111

1212
env:
1313
global:
1414
- GOLANG_VERSION="${TRAVIS_GO_VERSION}"
1515
- IMAGINARY_VERSION="${TRAVIS_TAG:-dev}"
1616
matrix:
17-
- LIBVIPS=8.7.3
18-
- LIBVIPS=8.7.4
17+
# - LIBVIPS=8.7.4
1918
- LIBVIPS=8.8.0
2019
- LIBVIPS=8.8.1
20+
- LIBVIPS=8.9.2
2121

2222
before_install:
2323
- docker pull h2non/imaginary:latest || true

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
ARG GOLANG_VERSION=1.13.7
1+
ARG GOLANG_VERSION=1.14
22
FROM golang:${GOLANG_VERSION} as builder
33

44
ARG IMAGINARY_VERSION=dev
5-
ARG LIBVIPS_VERSION=8.9.1
5+
ARG LIBVIPS_VERSION=8.9.2
66
ARG GOLANGCILINT_VERSION=1.23.3
77

88
# Installs libvips + required libraries

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# imaginary [![Build Status](https://travis-ci.org/h2non/imaginary.png)](https://travis-ci.org/h2non/imaginary) [![Docker](https://img.shields.io/badge/docker-h2non/imaginary-blue.svg)](https://hub.docker.com/r/h2non/imaginary/) [![Docker Registry](https://img.shields.io/docker/pulls/h2non/imaginary.svg)](https://hub.docker.com/r/h2non/imaginary/) [![Go Report Card](http://goreportcard.com/badge/h2non/imaginary)](https://goreportcard.com/report/h2non/imaginary) [![Fly.io](https://img.shields.io/badge/deploy-fly.io-blue.svg)](https://fly.io/launch/github/h2non/imaginary)
1+
# imaginary [![Build Status](https://travis-ci.org/h2non/imaginary.svg)](https://travis-ci.org/h2non/imaginary) [![Docker](https://img.shields.io/badge/docker-h2non/imaginary-blue.svg)](https://hub.docker.com/r/h2non/imaginary/) [![Docker Registry](https://img.shields.io/docker/pulls/h2non/imaginary.svg)](https://hub.docker.com/r/h2non/imaginary/) [![Go Report Card](http://goreportcard.com/badge/h2non/imaginary)](https://goreportcard.com/report/h2non/imaginary) [![Fly.io](https://img.shields.io/badge/deploy-fly.io-blue.svg)](https://fly.io/launch/github/h2non/imaginary)
22

33
**[Fast](#benchmarks) HTTP [microservice](http://microservices.io/patterns/microservices.html)** written in Go **for high-level image processing** backed by [bimg](https://github.com/h2non/bimg) and [libvips](https://github.com/jcupitt/libvips). `imaginary` can be used as private or public HTTP service for massive image processing with first-class support for [Docker](#docker) & [Fly.io](#flyio).
44
It's almost dependency-free and only uses [`net/http`](http://golang.org/pkg/net/http/) native package without additional abstractions for better [performance](#performance).
@@ -83,7 +83,7 @@ go get -u github.com/h2non/imaginary
8383

8484
Also, be sure you have the latest version of `bimg`:
8585
```bash
86-
go get -u gopkg.in/h2non/bimg.v1
86+
go get -u github.com/h2non/bimg
8787
```
8888

8989
### libvips
@@ -219,7 +219,7 @@ Assuming that you want to provide a high availability to deal efficiently with,
219219
|==============|
220220
| Balancer |
221221
|==============|
222-
| |
222+
| |
223223
/ \
224224
/ \
225225
/ \
@@ -305,7 +305,7 @@ Options:
305305
-forward-headers Forwards custom headers to the image source server. -enable-url-source flag must be defined.
306306
-enable-url-signature Enable URL signature (URL-safe Base64-encoded HMAC digest) [default: false]
307307
-url-signature-key The URL signature key (32 characters minimum)
308-
-allowed-origins <urls> Restrict remote image source processing to certain origins (separated by commas). Note: Origins are validated against host *AND* path.
308+
-allowed-origins <urls> Restrict remote image source processing to certain origins (separated by commas). Note: Origins are validated against host *AND* path.
309309
-max-allowed-size <bytes> Restrict maximum size of http image source (in bytes)
310310
-certfile <path> TLS certificate file path
311311
-keyfile <path> TLS private key file path
@@ -546,7 +546,7 @@ Image measures are always in pixels, unless otherwise indicated.
546546
- **url** `string` - Fetch the image from a remote HTTP server. In order to use this you must pass the `-enable-url-source` flag.
547547
- **colorspace** `string` - Use a custom color space for the output image. Allowed values are: `srgb` or `bw` (black&white)
548548
- **field** `string` - Custom image form field name if using `multipart/form`. Defaults to: `file`
549-
- **extend** `string` - Extend represents the image extend mode used when the edges of an image are extended. Allowed values are: `black`, `copy`, `mirror`, `white` and `background`. If `background` value is specified, you can define the desired extend RGB color via `background` param, such as `?extend=background&background=250,20,10`. For more info, see [libvips docs](http://www.vips.ecs.soton.ac.uk/supported/8.4/doc/html/libvips/libvips-conversion.html#VIPS-EXTEND-BACKGROUND:CAPS).
549+
- **extend** `string` - Extend represents the image extend mode used when the edges of an image are extended. Defaults to `copy`. Allowed values are: `black`, `copy`, `mirror`, `white`, `lastpixel` and `background`. If `background` value is specified, you can define the desired extend RGB color via `background` param, such as `?extend=background&background=250,20,10`. For more info, see [libvips docs](http://www.vips.ecs.soton.ac.uk/supported/8.4/doc/html/libvips/libvips-conversion.html#VIPS-EXTEND-BACKGROUND:CAPS).
550550
- **background** `string` - Background RGB decimal base color to use when flattening transparent PNGs. Example: `255,200,150`
551551
- **sigma** `float` - Size of the gaussian mask to use when blurring an image. Example: `15.0`
552552
- **minampl** `float` - Minimum amplitude of the gaussian filter to use when blurring an image. Default: Example: `0.5`

0 commit comments

Comments
 (0)