qiniu v0.4.0 Qiniu.Fop.Image
Link to this section 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
Link to this section Functions
Link to this function
avg_hue(url)
Get average hue of the image
See info/1
for the arguments
Link to this function
exif(url)
Get EXIF(EXchangeable Image File Format) of a image
See info/1
for the arguments
Link to this function
info(url)
Get basic information of a image, including format, size, color model
Fields
url
- URL of the image, like http://qiniuphotos.qiniudn.com/gogopher.jpg
Link to this function
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