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