github cshum/imagor v1.0.2

latest releases: v1.9.4, v1.9.3, v1.9.2...
3 years ago

Text Label Filter

label(text, x, y, size, color[, alpha[, font]])

Adds a text label to the image. It can be positioned inside the image with the alignment specified, color and transparency support:

  • text text label, also support url encoded text.
  • x horizontal position that the text label will be in:
    • Positive number indicate position from the left, negative number from the right.
    • Number followed by a p e.g. 20p means calculating the value from the image width as percentage
    • left,right,center align left, right or centered respectively
  • y vertical position that the text label will be in:
    • Positive number indicate position from the top, negative number from the bottom.
    • Number followed by a p e.g. 20p means calculating the value from the image height as percentage
    • top,bottom,center vertical align top, bottom or centered respectively
  • size - text label font size
  • color - color name or hexadecimal rgb expression without the “#” character
  • alpha - text label transparency, a number between 0 (fully opaque) and 100 (fully transparent).
  • font - text label font type

What's Changed

  • feat(vips): vips load from source alias by @cshum in #130
  • feat(imagor): improve process response concurrency by @cshum in #132
  • build(deps): bump go.uber.org/zap from 1.21.0 to 1.22.0 by @dependabot in #135
  • build(deps): bump github.com/aws/aws-sdk-go from 1.44.70 to 1.44.76 by @dependabot in #134
  • feat(vips): text label filter by @cshum in #139

Full Changelog: v1.0.1...v1.0.2

Don't miss a new imagor release

NewReleases is sending notifications on new releases.