Qiniu.Fog.Image

Summary

avg_hue(url)

Get average hue of the image

exif(url)

Get EXIF(EXchangeable Image File Format) of a image

info(url)

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

watermark(type, image_url, watermark_url, opts)

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
  • :gravity
  • :dx
  • :dy

For text type:

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