This object is injected into script and available via obj
value
uri
- net/url object which contains whole url **uri.host
- uri host **uri.scheme
- uri scheme **uri.path
- uri path **uri.rawquery
- uri whole query in string **uri.query
- uri query string as mapbucket
- string name of bucket for objectkey
- string, storage path for objecttransforms
- object on which you can add image manipulations. For more see Transformss
allowChangeKey
- bool (default: true) if storage path for object can be changedcheckParent
- bool (default: false) if mort should make check if parent exist before generating imagedebug
- bool (default: false) add debug headers to response
Example usage
fmt := import("fmt")
fmt.println(obj.key)
fmt.println(obj.uri)
Object on which you can execute image manipulation described in Image-Operations
resize(width int, height, int, enlarge bool, preverseAspectRatio bool, fill bool)
- resize imageextract(top, left, width, height int)
- crop imagecrop(width int, height int, gravity string, enlarge bool, embed bool)
- crop imageresizeCropAuto(width int, height int)
- crop imageinterlace()
quality(quality int)
- image qualitystripMetadata()
- remove metadatablur(sigma float, mingAmpl float)
- blur imageformat(format string)
- change image formatwatermark(image string, position string, opacity float)
- add watermark to imagegrayscale()
- image in grayscalerotate(angle int)
- rotate image