重力

描述性

限定符确定资产哪部分集中使用,并因此确定资产哪部分保留
时段资产裁剪套用权,此设置决定哪里布置套用权

实例
导入++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++import {compass} from "@cloudinary/url-gen/qualifiers/gravity"!import {north} from "@cloudinary/url-gen/qualifiers/compass"!servedurary/url-gen/actions/snockInstance=新云式({cloud:{cloudName:demo++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++康斯特图像=您的CldInstance.image重裁图像(crop().width(300).grightity(robass(nortth()))//


新建自动重力(b)


新建轮廓重力(b)


新建FocusOn重力(b)


新建XYCenter重力(b)

方法论


指南针高山市方向选择)→ {CompassGravity}

描述性

定义重力基础指南针方向值学习更多 :控制重力图像学习更多 :控制重力视频

参数解析
名称 类型 描述性
方向选择 Qualifiers.Compass|字符串

指南针值

回归
实例
导入++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++import {compass} from "@cloudinary/url-gen/qualifiers/gravity"!import {north} from "@cloudinary/url-gen/qualifiers/compass"!servedurary/url-gen/actions/snockInstance=新云式({cloud:{cloudName:demo++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++康斯特图像=您的CldInstance.imageimage.resize(crop().width(300).gravity(compass(north())))

焦点On高山市.args)→ {FocusOnGravity}

修饰语

描述性

指定聚焦点,例如:脸部、对象、眼睛等

参数解析
名称 类型 属性化 描述性
参比值 Qualifier.FocusOn

一个或多个对象聚焦

回归
实例
导入++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++import {focusOn} from "@cloudinary/url-gen/qualifiers/gravity"!servedurary/url-gen/actions/squariary/url-gen/quarips/FocusOnsnockInstance=新云式({cloud:{cloudName:demo++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++康斯特图像=您的CldInstance.imageimage.resize(crop().width(300).gravity(focusOn(cat())))

自重力(b)→ {Qualifiers.Gravity.AutoGravity}

修饰语

描述性

自动识别资产中最感兴趣的区域,通过包括聚焦点可以进一步限定

实例
导入++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++import {autoGravity} from "@cloudinary/url-gen/qualifiers/gravity"!servedurary/url-gen/actions/snockInstance=新云式({cloud:{cloudName:demo++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++康斯特图像=您的CldInstance.imageimage.resize(crop().width(300).gravity(autoGravity()))
导入++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++import {autoGravity} from "@cloudinary/url-gen/qualifiers/gravity"!servedurary/url-gen/actions/squariary/url-gen/quarips/FocusOnimport {AutoFocus} from "@cloudinary/url-gen/qualifiers/autoFocus"!snockInstance=新云式({cloud:{cloudName:demo++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++康斯特图像=您的CldInstance.imageimage.resize(crop().width(300).gravity(autoGravity().autoFocus(AutoFocus.focusOn(cat()))))

xyCenter(b)→ {XYCenterGravity}

修饰语

描述性

将重力中心设为给定x&y坐标

回归