github cshum/imagor v0.9.3

latest releases: v1.9.5, v1.9.4, v1.9.3...
4 years ago

Improved Throughput with imagor.Blob

Imagor v0.9 introduced imagor.Blob as the mechanism for bytes transfer and content type sniffing, which supports spawning multiple concurrent Reader stream from a single source. This greatly improved the throughput across Loader, Storage, Result Storage and HTTP response.

Base Params Support

Using -imagor-base-pararms You can now configure predefined endpoint params that applies to all resulting images.
For example, a watermark for every generated images:

docker run -p 8000:8000 shumc/imagor:0.9.3 -imagor-unsafe -imagor-base-params 'filters:watermark(raw.githubusercontent.com/cshum/imagor/master/testdata/gopher-front.png,-15,-15,20,30,30)'

Try out the following URLs:

http://localhost:8000/unsafe/fit-in/200x200/filters:fill(white)/raw.githubusercontent.com/cshum/imagor/master/testdata/gopher.png
http://localhost:8000/unsafe/fit-in/200x200/filters:fill(yellow)/raw.githubusercontent.com/cshum/imagor/master/testdata/nyan-cat.gif

gopher nyan-cat

New Config Options

  -imagor-base-params string
        Imagor endpoint base params that applies to all resulting images e.g. fitlers:watermark(example.jpg)
  -imagor-disable-params-endpoint
        Imagor disable /params endpoint
  -imagor-disable-error-body
        Imagor disable response body on error

What's Changed

  • feat(imagor): metadata from result storage by @cshum in #65
  • feat(imagor): io.Reader, io.Writer stream based Blob container by @cshum in #66
  • feat(imagor): -imagor-disable-error-body
  • feat(imagor): -imagor-disable-params-endpoint
  • feat(imagor): base endpoint params support with -imagor-base-params
  • fix(vips): fix image ref gc
  • fix(imagor): fix blob error expansion

Full Changelog: v0.8.29...v0.9.3

Don't miss a new imagor release

NewReleases is sending notifications on new releases.