qiniu v0.3.5 Qiniu.Fop.Image

Summary

Functions

Get average hue of the image

Get EXIF(EXchangeable Image File Format) of a image

Get basic information of a image, including format, size, color model

Add watermark to image. There’re two kinds of watermarks. See

Functions

avg_hue(url)

Get average hue of the image

See info/1 for the arguments

exif(url)

Get EXIF(EXchangeable Image File Format) of a image

See info/1 for the arguments

info(url)

Get basic information of a image, including format, size, color model

Fields

watermark(type, image_url, watermark_url, opts \\ [])

Add watermark to image. There’re two kinds of watermarks. See

Refer to http://developer.qiniu.com/docs/v6/api/reference/fop/image/watermark.html

Fields

  • type - :image or :text
  • image_url - URL of the image to add watermark to
  • watermark_url - image url of the watermark

Options

For image type:

  • :dissolve - value for transparent, 1-100
  • :gravity - default is SouthEast
  • :dx - default is 10
  • :dy - default is 10

For text type:

  • :font
  • :font_size
  • :fill
  • :dissolve
  • :gravity
  • :dx
  • :dy