跳转到内容

智能裁剪刚有智能

数年以来,云化在智能裁剪领域一直非常杰出-确保图像和视频的重要部分在重裁和自动裁剪时保留并大规模保留

云形最新提供区使用AI分析每一图像,决定图像最突出相关部分,并确保裁剪图像保留给定维度基本元素

有很多方法你可以裁剪图像云形应用页面设计重力指针绘制图像以确定聚焦点如果你不指定重力,图像中心将永远焦点自动裁剪图像时,标尺上,你不会知道图像中是什么,所以保持图像中心不总管用

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/happy_people.jpg', {aspectRatio: \"1:1\", height: 200, crop: \"thumb\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/happy_people.jpg', {aspectRatio: \"1:1\", height: 200, crop: \"thumb\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/happy_people.jpg\").image(aspect_ratio=\"1:1\", height=200, crop=\"thumb\")","codeSnippet":"CloudinaryImage(\"docs\/happy_people.jpg\").image(aspect_ratio=\"1:1\", height=200, crop=\"thumb\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/happy_people.jpg'))\n\t->resize(Resize::thumbnail()->height(200)\n\t->aspectRatio(\n\tAspectRatio::ar1X1())\n\t);","codeSnippet":"(new ImageTag('docs\/happy_people.jpg'))\n\t->resize(Resize::thumbnail()->height(200)\n\t->aspectRatio(\n\tAspectRatio::ar1X1())\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", array(\"aspect_ratio\"=>\"1:1\", \"height\"=>200, \"crop\"=>\"thumb\"))","codeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", array(\"aspect_ratio\"=>\"1:1\", \"height\"=>200, \"crop\"=>\"thumb\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:1\").height(200).crop(\"thumb\")).imageTag(\"docs\/happy_people.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:1\").height(200).crop(\"thumb\")).imageTag(\"docs\/happy_people.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", :aspect_ratio=>\"1:1\", :height=>200, :crop=>\"thumb\")","codeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", :aspect_ratio=>\"1:1\", :height=>200, :crop=>\"thumb\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:1\").Height(200).Crop(\"thumb\")).BuildImageTag(\"docs\/happy_people.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:1\").Height(200).Crop(\"thumb\")).BuildImageTag(\"docs\/happy_people.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t));","codeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:1\").setHeight(200).setCrop(\"thumb\")).generate(\"docs\/happy_people.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:1\").setHeight(200).setCrop(\"thumb\")).generate(\"docs\/happy_people.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:1\").height(200).crop(\"thumb\")).generate(\"docs\/happy_people.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:1\").height(200).crop(\"thumb\")).generate(\"docs\/happy_people.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t));","codeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/happy_people.jpg\")\n\t resize(Resize.thumbnail() { height(200)\n\t aspectRatio(\n\tAspectRatio.ar1X1())\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/happy_people.jpg\")\n\t resize(Resize.thumbnail() { height(200)\n\t aspectRatio(\n\tAspectRatio.ar1X1())\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/happy_people.jpg\", {aspect_ratio: \"1:1\", height: 200, crop: \"thumb\"})","codeSnippet":"$.cloudinary.image(\"docs\/happy_people.jpg\", {aspect_ratio: \"1:1\", height: 200, crop: \"thumb\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_1:1,c_thumb,h_200\/docs\/happy_people.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"1:1","crop_mode":"thumb","height":"200"}],"transformation_string":"ar_1:1,c_thumb,h_200","url_suffix":"","version":null,"secure":true,"public_id":"docs\/happy_people.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例

原创图像

原创图像

无重力裁剪

无重力裁剪

正因如此,说明重力有帮助如果您只对图像中的脸部感兴趣,您可以指定脸部as重力g表情和云化算法 将努力保留这些算法或,如果你对特定对象感兴趣,你可以使用贝斯特平台网址云化AI内容分析附加指定对象为重力

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n .gravity(focusOn(faces()))\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n .gravity(focusOn(faces()))\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n .gravity(focusOn(faces()))\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n .gravity(focusOn(faces()))\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n .gravity(focusOn(faces()))\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n .gravity(focusOn(faces()))\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/happy_people.jpg', {aspectRatio: \"1:1\", gravity: \"faces\", height: 200, crop: \"thumb\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/happy_people.jpg', {aspectRatio: \"1:1\", gravity: \"faces\", height: 200, crop: \"thumb\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/happy_people.jpg\").image(aspect_ratio=\"1:1\", gravity=\"faces\", height=200, crop=\"thumb\")","codeSnippet":"CloudinaryImage(\"docs\/happy_people.jpg\").image(aspect_ratio=\"1:1\", gravity=\"faces\", height=200, crop=\"thumb\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/happy_people.jpg'))\n\t->resize(Resize::thumbnail()->height(200)\n\t->aspectRatio(\n\tAspectRatio::ar1X1())\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::faces()))\n\t);","codeSnippet":"(new ImageTag('docs\/happy_people.jpg'))\n\t->resize(Resize::thumbnail()->height(200)\n\t->aspectRatio(\n\tAspectRatio::ar1X1())\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::faces()))\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", array(\"aspect_ratio\"=>\"1:1\", \"gravity\"=>\"faces\", \"height\"=>200, \"crop\"=>\"thumb\"))","codeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", array(\"aspect_ratio\"=>\"1:1\", \"gravity\"=>\"faces\", \"height\"=>200, \"crop\"=>\"thumb\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"faces\").height(200).crop(\"thumb\")).imageTag(\"docs\/happy_people.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"faces\").height(200).crop(\"thumb\")).imageTag(\"docs\/happy_people.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", :aspect_ratio=>\"1:1\", :gravity=>\"faces\", :height=>200, :crop=>\"thumb\")","codeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", :aspect_ratio=>\"1:1\", :gravity=>\"faces\", :height=>200, :crop=>\"thumb\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:1\").Gravity(\"faces\").Height(200).Crop(\"thumb\")).BuildImageTag(\"docs\/happy_people.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:1\").Gravity(\"faces\").Height(200).Crop(\"thumb\")).BuildImageTag(\"docs\/happy_people.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.faces()))\n\t));","codeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.faces()))\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:1\").setGravity(\"faces\").setHeight(200).setCrop(\"thumb\")).generate(\"docs\/happy_people.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:1\").setGravity(\"faces\").setHeight(200).setCrop(\"thumb\")).generate(\"docs\/happy_people.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"faces\").height(200).crop(\"thumb\")).generate(\"docs\/happy_people.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"faces\").height(200).crop(\"thumb\")).generate(\"docs\/happy_people.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.faces()))\n\t));","codeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.faces()))\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/happy_people.jpg\")\n\t resize(Resize.thumbnail() { height(200)\n\t aspectRatio(\n\tAspectRatio.ar1X1())\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.faces()))\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/happy_people.jpg\")\n\t resize(Resize.thumbnail() { height(200)\n\t aspectRatio(\n\tAspectRatio.ar1X1())\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.faces()))\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/happy_people.jpg\", {aspect_ratio: \"1:1\", gravity: \"faces\", height: 200, crop: \"thumb\"})","codeSnippet":"$.cloudinary.image(\"docs\/happy_people.jpg\", {aspect_ratio: \"1:1\", gravity: \"faces\", height: 200, crop: \"thumb\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n .gravity(focusOn(faces()))\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .height(200)\n .aspectRatio(ar1X1())\n .gravity(focusOn(faces()))\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_1:1,c_thumb,g_faces,h_200\/docs\/happy_people.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"1:1","crop_mode":"thumb","gravity":"faces","height":"200"}],"transformation_string":"ar_1:1,c_thumb,g_faces,h_200","url_suffix":"","version":null,"secure":true,"public_id":"docs\/happy_people.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例

聚焦面孔

聚焦面孔

聚焦包

聚焦包

如果您不偏爱保留物,您可以简单使用自重转换参数g_aut并依赖AI集中关注最感兴趣的领域

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/happy_people.jpg', {aspectRatio: \"1:1\", gravity: \"auto\", crop: \"thumb\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/happy_people.jpg', {aspectRatio: \"1:1\", gravity: \"auto\", crop: \"thumb\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/happy_people.jpg\").image(aspect_ratio=\"1:1\", gravity=\"auto\", crop=\"thumb\")","codeSnippet":"CloudinaryImage(\"docs\/happy_people.jpg\").image(aspect_ratio=\"1:1\", gravity=\"auto\", crop=\"thumb\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/happy_people.jpg'))\n\t->resize(Resize::thumbnail()\n\t->aspectRatio(\n\tAspectRatio::ar1X1())\n\t->gravity(\n\tGravity::autoGravity())\n\t);","codeSnippet":"(new ImageTag('docs\/happy_people.jpg'))\n\t->resize(Resize::thumbnail()\n\t->aspectRatio(\n\tAspectRatio::ar1X1())\n\t->gravity(\n\tGravity::autoGravity())\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", array(\"aspect_ratio\"=>\"1:1\", \"gravity\"=>\"auto\", \"crop\"=>\"thumb\"))","codeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", array(\"aspect_ratio\"=>\"1:1\", \"gravity\"=>\"auto\", \"crop\"=>\"thumb\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"auto\").crop(\"thumb\")).imageTag(\"docs\/happy_people.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"auto\").crop(\"thumb\")).imageTag(\"docs\/happy_people.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", :aspect_ratio=>\"1:1\", :gravity=>\"auto\", :crop=>\"thumb\")","codeSnippet":"cl_image_tag(\"docs\/happy_people.jpg\", :aspect_ratio=>\"1:1\", :gravity=>\"auto\", :crop=>\"thumb\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:1\").Gravity(\"auto\").Crop(\"thumb\")).BuildImageTag(\"docs\/happy_people.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:1\").Gravity(\"auto\").Crop(\"thumb\")).BuildImageTag(\"docs\/happy_people.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail()\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail()\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:1\").setGravity(\"auto\").setCrop(\"thumb\")).generate(\"docs\/happy_people.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:1\").setGravity(\"auto\").setCrop(\"thumb\")).generate(\"docs\/happy_people.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"auto\").crop(\"thumb\")).generate(\"docs\/happy_people.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"auto\").crop(\"thumb\")).generate(\"docs\/happy_people.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail()\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/happy_people.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail()\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/happy_people.jpg\")\n\t resize(Resize.thumbnail() {\n\t aspectRatio(\n\tAspectRatio.ar1X1())\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/happy_people.jpg\")\n\t resize(Resize.thumbnail() {\n\t aspectRatio(\n\tAspectRatio.ar1X1())\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/happy_people.jpg\", {aspect_ratio: \"1:1\", gravity: \"auto\", crop: \"thumb\"})","codeSnippet":"$.cloudinary.image(\"docs\/happy_people.jpg\", {aspect_ratio: \"1:1\", gravity: \"auto\", crop: \"thumb\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/happy_people.jpg\").resize(\n thumbnail()\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_1:1,c_thumb,g_auto\/docs\/happy_people.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"1:1","crop_mode":"thumb","gravity":"auto"}],"transformation_string":"ar_1:1,c_thumb,g_auto","url_suffix":"","version":null,"secure":true,"public_id":"docs\/happy_people.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例

自动重力

自动重力

自动重力

自动重力

万一自重力聚焦图像最趣味部分 自动实现, 汽车裁剪插在哪里

答案在于用自重处理的作物类型自动重力指向主要兴趣区,但作物类型决定该区保留多少

作物填充和缩略图裁剪模式各有其局限性:

  • 上头裁剪裁剪模式C_crop依赖图像分辨率和图像对象大小无关缩放问题, 同一图像不同分辨率上相同的裁剪维度 要么切除太多对象, 或提供太多后台手动坐标有用 但不自动化
  • 上头填充裁剪模式C_填充缩放图像,但仅需填充两个指定维度,所以它不总能足够缩放重要部分
  • 上头缩略图裁剪模式C_thumbURL中常被视为过分攻击性并依赖图像解析
C_cropC_crop C_填充C_填充 C_thumbC_thumb

上头汽车裁剪模式C_aut计算指定维度最佳裁剪,计及图像显性部分的80%以上3:2宽比200像素高度裁剪

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera_1280-1020.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(ar3X2())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera_1280-1020.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(ar3X2())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera_1280-1020.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(ar3X2())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera_1280-1020.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(ar3X2())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera_1280-1020.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(ar3X2())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera_1280-1020.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(ar3X2())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/camera_1280-1020.jpg', {aspectRatio: \"3:2\", gravity: \"auto\", height: 200, crop: \"auto\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/camera_1280-1020.jpg', {aspectRatio: \"3:2\", gravity: \"auto\", height: 200, crop: \"auto\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/camera_1280-1020.jpg\").image(aspect_ratio=\"3:2\", gravity=\"auto\", height=200, crop=\"auto\")","codeSnippet":"CloudinaryImage(\"docs\/camera_1280-1020.jpg\").image(aspect_ratio=\"3:2\", gravity=\"auto\", height=200, crop=\"auto\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/camera_1280-1020.jpg'))\n\t->resize(Resize::auto()->height(200)\n\t->aspectRatio(\n\tAspectRatio::ar3X2())\n\t->gravity(\n\tGravity::autoGravity())\n\t);","codeSnippet":"(new ImageTag('docs\/camera_1280-1020.jpg'))\n\t->resize(Resize::auto()->height(200)\n\t->aspectRatio(\n\tAspectRatio::ar3X2())\n\t->gravity(\n\tGravity::autoGravity())\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/camera_1280-1020.jpg\", array(\"aspect_ratio\"=>\"3:2\", \"gravity\"=>\"auto\", \"height\"=>200, \"crop\"=>\"auto\"))","codeSnippet":"cl_image_tag(\"docs\/camera_1280-1020.jpg\", array(\"aspect_ratio\"=>\"3:2\", \"gravity\"=>\"auto\", \"height\"=>200, \"crop\"=>\"auto\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"3:2\").gravity(\"auto\").height(200).crop(\"auto\")).imageTag(\"docs\/camera_1280-1020.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"3:2\").gravity(\"auto\").height(200).crop(\"auto\")).imageTag(\"docs\/camera_1280-1020.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/camera_1280-1020.jpg\", :aspect_ratio=>\"3:2\", :gravity=>\"auto\", :height=>200, :crop=>\"auto\")","codeSnippet":"cl_image_tag(\"docs\/camera_1280-1020.jpg\", :aspect_ratio=>\"3:2\", :gravity=>\"auto\", :height=>200, :crop=>\"auto\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"3:2\").Gravity(\"auto\").Height(200).Crop(\"auto\")).BuildImageTag(\"docs\/camera_1280-1020.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"3:2\").Gravity(\"auto\").Height(200).Crop(\"auto\")).BuildImageTag(\"docs\/camera_1280-1020.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/camera_1280-1020.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar3X2())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/camera_1280-1020.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar3X2())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"3:2\").setGravity(\"auto\").setHeight(200).setCrop(\"auto\")).generate(\"docs\/camera_1280-1020.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"3:2\").setGravity(\"auto\").setHeight(200).setCrop(\"auto\")).generate(\"docs\/camera_1280-1020.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"3:2\").gravity(\"auto\").height(200).crop(\"auto\")).generate(\"docs\/camera_1280-1020.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"3:2\").gravity(\"auto\").height(200).crop(\"auto\")).generate(\"docs\/camera_1280-1020.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/camera_1280-1020.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar3X2())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/camera_1280-1020.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(200)\n\t.aspectRatio(\n\tAspectRatio.ar3X2())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/camera_1280-1020.jpg\")\n\t resize(Resize.auto() { height(200)\n\t aspectRatio(\n\tAspectRatio.ar3X2())\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/camera_1280-1020.jpg\")\n\t resize(Resize.auto() { height(200)\n\t aspectRatio(\n\tAspectRatio.ar3X2())\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/camera_1280-1020.jpg\", {aspect_ratio: \"3:2\", gravity: \"auto\", height: 200, crop: \"auto\"})","codeSnippet":"$.cloudinary.image(\"docs\/camera_1280-1020.jpg\", {aspect_ratio: \"3:2\", gravity: \"auto\", height: 200, crop: \"auto\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera_1280-1020.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(ar3X2())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera_1280-1020.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(ar3X2())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_3:2,c_auto,g_auto,h_200\/docs\/camera_1280-1020.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"3:2","crop_mode":"auto","gravity":"auto","height":"200"}],"transformation_string":"ar_3:2,c_auto,g_auto,h_200","url_suffix":"","version":null,"secure":true,"public_id":"docs\/camera_1280-1020.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例

原创性

原创性

自动裁剪

C_aut

自动裁剪基于缩略图裁剪,即缩放图像以聚焦兴趣区缩略图可产生不可靠结果并依赖图像解析

数例修复缩略图裁剪法,产生首版自动机裁剪测试时发现新算法对自动重力和指定对象效果良好g_aut:,但不自动机重力原因是自重力算法指向图像小特征区域,但不计及整个对象

标准gaze预测算法用自重力定位某些区域并显示高尔夫高尔夫头部

高尔夫高尔夫

需要考虑全前景

高尔夫高尔夫带框区域

因此,我们使用新模型查找前台对象并标记为图像最突出部分这一新算法g_aut独有C_aut并允许它整理主题查看区间差C_填充C_aut裁剪新宽比2:1

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .height(150)\n .aspectRatio(\"2:1\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .height(150)\n .aspectRatio(\"2:1\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .height(150)\n .aspectRatio(\"2:1\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .height(150)\n .aspectRatio(\"2:1\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .height(150)\n .aspectRatio(\"2:1\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .height(150)\n .aspectRatio(\"2:1\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/golf.jpg', {aspectRatio: \"2:1\", gravity: \"auto\", height: 150, crop: \"auto\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/golf.jpg', {aspectRatio: \"2:1\", gravity: \"auto\", height: 150, crop: \"auto\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/golf.jpg\").image(aspect_ratio=\"2:1\", gravity=\"auto\", height=150, crop=\"auto\")","codeSnippet":"CloudinaryImage(\"docs\/golf.jpg\").image(aspect_ratio=\"2:1\", gravity=\"auto\", height=150, crop=\"auto\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/golf.jpg'))\n\t->resize(Resize::auto()->height(150)\n->aspectRatio(\"2:1\")\n\t->gravity(\n\tGravity::autoGravity())\n\t);","codeSnippet":"(new ImageTag('docs\/golf.jpg'))\n\t->resize(Resize::auto()->height(150)\n->aspectRatio(\"2:1\")\n\t->gravity(\n\tGravity::autoGravity())\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/golf.jpg\", array(\"aspect_ratio\"=>\"2:1\", \"gravity\"=>\"auto\", \"height\"=>150, \"crop\"=>\"auto\"))","codeSnippet":"cl_image_tag(\"docs\/golf.jpg\", array(\"aspect_ratio\"=>\"2:1\", \"gravity\"=>\"auto\", \"height\"=>150, \"crop\"=>\"auto\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"2:1\").gravity(\"auto\").height(150).crop(\"auto\")).imageTag(\"docs\/golf.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"2:1\").gravity(\"auto\").height(150).crop(\"auto\")).imageTag(\"docs\/golf.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/golf.jpg\", :aspect_ratio=>\"2:1\", :gravity=>\"auto\", :height=>150, :crop=>\"auto\")","codeSnippet":"cl_image_tag(\"docs\/golf.jpg\", :aspect_ratio=>\"2:1\", :gravity=>\"auto\", :height=>150, :crop=>\"auto\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"2:1\").Gravity(\"auto\").Height(150).Crop(\"auto\")).BuildImageTag(\"docs\/golf.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"2:1\").Gravity(\"auto\").Height(150).Crop(\"auto\")).BuildImageTag(\"docs\/golf.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/golf.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(150)\n.aspectRatio(\"2:1\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/golf.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(150)\n.aspectRatio(\"2:1\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"2:1\").setGravity(\"auto\").setHeight(150).setCrop(\"auto\")).generate(\"docs\/golf.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"2:1\").setGravity(\"auto\").setHeight(150).setCrop(\"auto\")).generate(\"docs\/golf.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"2:1\").gravity(\"auto\").height(150).crop(\"auto\")).generate(\"docs\/golf.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"2:1\").gravity(\"auto\").height(150).crop(\"auto\")).generate(\"docs\/golf.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/golf.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(150)\n.aspectRatio(\"2:1\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/golf.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(150)\n.aspectRatio(\"2:1\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/golf.jpg\")\n\t resize(Resize.auto() { height(150)\n aspectRatio(\"2:1\")\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/golf.jpg\")\n\t resize(Resize.auto() { height(150)\n aspectRatio(\"2:1\")\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/golf.jpg\", {aspect_ratio: \"2:1\", gravity: \"auto\", height: 150, crop: \"auto\"})","codeSnippet":"$.cloudinary.image(\"docs\/golf.jpg\", {aspect_ratio: \"2:1\", gravity: \"auto\", height: 150, crop: \"auto\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .height(150)\n .aspectRatio(\"2:1\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .height(150)\n .aspectRatio(\"2:1\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_2:1,c_auto,g_auto,h_150\/docs\/golf.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"2:1","crop_mode":"auto","gravity":"auto","height":"150"}],"transformation_string":"ar_2:1,c_auto,g_auto,h_150","url_suffix":"","version":null,"secure":true,"public_id":"docs\/golf.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例

填充裁剪

填充裁剪

自动裁剪

自动裁剪

  • 填充裁剪填充,g_auto聚焦高尔夫头和中心 尽可能垂直
  • 汽车裁剪auto,g_auto聚焦全高尔夫

今次,我们将尝试 异端比并比较C_thumb:

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .width(150)\n .aspectRatio(\"1:2\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .width(150)\n .aspectRatio(\"1:2\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .width(150)\n .aspectRatio(\"1:2\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .width(150)\n .aspectRatio(\"1:2\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .width(150)\n .aspectRatio(\"1:2\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .width(150)\n .aspectRatio(\"1:2\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/golf.jpg', {aspectRatio: \"1:2\", gravity: \"auto\", width: 150, crop: \"auto\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/golf.jpg', {aspectRatio: \"1:2\", gravity: \"auto\", width: 150, crop: \"auto\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/golf.jpg\").image(aspect_ratio=\"1:2\", gravity=\"auto\", width=150, crop=\"auto\")","codeSnippet":"CloudinaryImage(\"docs\/golf.jpg\").image(aspect_ratio=\"1:2\", gravity=\"auto\", width=150, crop=\"auto\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/golf.jpg'))\n\t->resize(Resize::auto()->width(150)\n->aspectRatio(\"1:2\")\n\t->gravity(\n\tGravity::autoGravity())\n\t);","codeSnippet":"(new ImageTag('docs\/golf.jpg'))\n\t->resize(Resize::auto()->width(150)\n->aspectRatio(\"1:2\")\n\t->gravity(\n\tGravity::autoGravity())\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/golf.jpg\", array(\"aspect_ratio\"=>\"1:2\", \"gravity\"=>\"auto\", \"width\"=>150, \"crop\"=>\"auto\"))","codeSnippet":"cl_image_tag(\"docs\/golf.jpg\", array(\"aspect_ratio\"=>\"1:2\", \"gravity\"=>\"auto\", \"width\"=>150, \"crop\"=>\"auto\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:2\").gravity(\"auto\").width(150).crop(\"auto\")).imageTag(\"docs\/golf.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:2\").gravity(\"auto\").width(150).crop(\"auto\")).imageTag(\"docs\/golf.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/golf.jpg\", :aspect_ratio=>\"1:2\", :gravity=>\"auto\", :width=>150, :crop=>\"auto\")","codeSnippet":"cl_image_tag(\"docs\/golf.jpg\", :aspect_ratio=>\"1:2\", :gravity=>\"auto\", :width=>150, :crop=>\"auto\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:2\").Gravity(\"auto\").Width(150).Crop(\"auto\")).BuildImageTag(\"docs\/golf.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:2\").Gravity(\"auto\").Width(150).Crop(\"auto\")).BuildImageTag(\"docs\/golf.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/golf.jpg').transformation(Transformation()\n\t.resize(Resize.auto().width(150)\n.aspectRatio(\"1:2\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/golf.jpg').transformation(Transformation()\n\t.resize(Resize.auto().width(150)\n.aspectRatio(\"1:2\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:2\").setGravity(\"auto\").setWidth(150).setCrop(\"auto\")).generate(\"docs\/golf.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:2\").setGravity(\"auto\").setWidth(150).setCrop(\"auto\")).generate(\"docs\/golf.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:2\").gravity(\"auto\").width(150).crop(\"auto\")).generate(\"docs\/golf.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:2\").gravity(\"auto\").width(150).crop(\"auto\")).generate(\"docs\/golf.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/golf.jpg').transformation(Transformation()\n\t.resize(Resize.auto().width(150)\n.aspectRatio(\"1:2\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/golf.jpg').transformation(Transformation()\n\t.resize(Resize.auto().width(150)\n.aspectRatio(\"1:2\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/golf.jpg\")\n\t resize(Resize.auto() { width(150)\n aspectRatio(\"1:2\")\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/golf.jpg\")\n\t resize(Resize.auto() { width(150)\n aspectRatio(\"1:2\")\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/golf.jpg\", {aspect_ratio: \"1:2\", gravity: \"auto\", width: 150, crop: \"auto\"})","codeSnippet":"$.cloudinary.image(\"docs\/golf.jpg\", {aspect_ratio: \"1:2\", gravity: \"auto\", width: 150, crop: \"auto\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .width(150)\n .aspectRatio(\"1:2\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/golf.jpg\").resize(\n auto()\n .width(150)\n .aspectRatio(\"1:2\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_1:2,c_auto,g_auto,w_150\/docs\/golf.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"1:2","crop_mode":"auto","gravity":"auto","width":"150"}],"transformation_string":"ar_1:2,c_auto,g_auto,w_150","url_suffix":"","version":null,"secure":true,"public_id":"docs\/golf.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例

缩略图裁剪

缩略图裁剪

自动裁剪

自动裁剪

可以看到缩图作物如何不可预测,而汽车作物聚焦高尔夫

图像中多对象时,自动机将聚焦最大对象,缩略图粒子将努力包括尽可能多的对象试下图2比3

原创图像

人聚

这里可以看到缩图裁剪和自动机裁剪之差

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/crowd-faces.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(\"2:3\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/crowd-faces.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(\"2:3\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/crowd-faces.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(\"2:3\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/crowd-faces.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(\"2:3\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/crowd-faces.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(\"2:3\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/crowd-faces.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(\"2:3\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/crowd-faces.jpg', {aspectRatio: \"2:3\", gravity: \"auto\", height: 200, crop: \"auto\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/crowd-faces.jpg', {aspectRatio: \"2:3\", gravity: \"auto\", height: 200, crop: \"auto\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/crowd-faces.jpg\").image(aspect_ratio=\"2:3\", gravity=\"auto\", height=200, crop=\"auto\")","codeSnippet":"CloudinaryImage(\"docs\/crowd-faces.jpg\").image(aspect_ratio=\"2:3\", gravity=\"auto\", height=200, crop=\"auto\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/crowd-faces.jpg'))\n\t->resize(Resize::auto()->height(200)\n->aspectRatio(\"2:3\")\n\t->gravity(\n\tGravity::autoGravity())\n\t);","codeSnippet":"(new ImageTag('docs\/crowd-faces.jpg'))\n\t->resize(Resize::auto()->height(200)\n->aspectRatio(\"2:3\")\n\t->gravity(\n\tGravity::autoGravity())\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/crowd-faces.jpg\", array(\"aspect_ratio\"=>\"2:3\", \"gravity\"=>\"auto\", \"height\"=>200, \"crop\"=>\"auto\"))","codeSnippet":"cl_image_tag(\"docs\/crowd-faces.jpg\", array(\"aspect_ratio\"=>\"2:3\", \"gravity\"=>\"auto\", \"height\"=>200, \"crop\"=>\"auto\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"2:3\").gravity(\"auto\").height(200).crop(\"auto\")).imageTag(\"docs\/crowd-faces.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"2:3\").gravity(\"auto\").height(200).crop(\"auto\")).imageTag(\"docs\/crowd-faces.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/crowd-faces.jpg\", :aspect_ratio=>\"2:3\", :gravity=>\"auto\", :height=>200, :crop=>\"auto\")","codeSnippet":"cl_image_tag(\"docs\/crowd-faces.jpg\", :aspect_ratio=>\"2:3\", :gravity=>\"auto\", :height=>200, :crop=>\"auto\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"2:3\").Gravity(\"auto\").Height(200).Crop(\"auto\")).BuildImageTag(\"docs\/crowd-faces.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"2:3\").Gravity(\"auto\").Height(200).Crop(\"auto\")).BuildImageTag(\"docs\/crowd-faces.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/crowd-faces.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(200)\n.aspectRatio(\"2:3\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/crowd-faces.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(200)\n.aspectRatio(\"2:3\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"2:3\").setGravity(\"auto\").setHeight(200).setCrop(\"auto\")).generate(\"docs\/crowd-faces.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"2:3\").setGravity(\"auto\").setHeight(200).setCrop(\"auto\")).generate(\"docs\/crowd-faces.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"2:3\").gravity(\"auto\").height(200).crop(\"auto\")).generate(\"docs\/crowd-faces.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"2:3\").gravity(\"auto\").height(200).crop(\"auto\")).generate(\"docs\/crowd-faces.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/crowd-faces.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(200)\n.aspectRatio(\"2:3\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/crowd-faces.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(200)\n.aspectRatio(\"2:3\")\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/crowd-faces.jpg\")\n\t resize(Resize.auto() { height(200)\n aspectRatio(\"2:3\")\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/crowd-faces.jpg\")\n\t resize(Resize.auto() { height(200)\n aspectRatio(\"2:3\")\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/crowd-faces.jpg\", {aspect_ratio: \"2:3\", gravity: \"auto\", height: 200, crop: \"auto\"})","codeSnippet":"$.cloudinary.image(\"docs\/crowd-faces.jpg\", {aspect_ratio: \"2:3\", gravity: \"auto\", height: 200, crop: \"auto\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/crowd-faces.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(\"2:3\")\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/crowd-faces.jpg\").resize(\n auto()\n .height(200)\n .aspectRatio(\"2:3\")\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_2:3,c_auto,g_auto,h_200\/docs\/crowd-faces.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"2:3","crop_mode":"auto","gravity":"auto","height":"200"}],"transformation_string":"ar_2:3,c_auto,g_auto,h_200","url_suffix":"","version":null,"secure":true,"public_id":"docs\/crowd-faces.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例

缩略图裁剪

缩略图裁剪

自动裁剪

自动裁剪

如果没有清晰对象聚焦点,像风景图片中, 最好保持填充裁剪更多工作正在这个区域做, 所以看这个空间!

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/landscape-country.jpg\").resize(\n auto()\n .width(200)\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/landscape-country.jpg\").resize(\n auto()\n .width(200)\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/landscape-country.jpg\").resize(\n auto()\n .width(200)\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/landscape-country.jpg\").resize(\n auto()\n .width(200)\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/landscape-country.jpg\").resize(\n auto()\n .width(200)\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/landscape-country.jpg\").resize(\n auto()\n .width(200)\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/landscape-country.jpg', {aspectRatio: \"1:1\", gravity: \"auto\", width: 200, crop: \"auto\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/landscape-country.jpg', {aspectRatio: \"1:1\", gravity: \"auto\", width: 200, crop: \"auto\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/landscape-country.jpg\").image(aspect_ratio=\"1:1\", gravity=\"auto\", width=200, crop=\"auto\")","codeSnippet":"CloudinaryImage(\"docs\/landscape-country.jpg\").image(aspect_ratio=\"1:1\", gravity=\"auto\", width=200, crop=\"auto\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/landscape-country.jpg'))\n\t->resize(Resize::auto()->width(200)\n\t->aspectRatio(\n\tAspectRatio::ar1X1())\n\t->gravity(\n\tGravity::autoGravity())\n\t);","codeSnippet":"(new ImageTag('docs\/landscape-country.jpg'))\n\t->resize(Resize::auto()->width(200)\n\t->aspectRatio(\n\tAspectRatio::ar1X1())\n\t->gravity(\n\tGravity::autoGravity())\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/landscape-country.jpg\", array(\"aspect_ratio\"=>\"1:1\", \"gravity\"=>\"auto\", \"width\"=>200, \"crop\"=>\"auto\"))","codeSnippet":"cl_image_tag(\"docs\/landscape-country.jpg\", array(\"aspect_ratio\"=>\"1:1\", \"gravity\"=>\"auto\", \"width\"=>200, \"crop\"=>\"auto\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"auto\").width(200).crop(\"auto\")).imageTag(\"docs\/landscape-country.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"auto\").width(200).crop(\"auto\")).imageTag(\"docs\/landscape-country.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/landscape-country.jpg\", :aspect_ratio=>\"1:1\", :gravity=>\"auto\", :width=>200, :crop=>\"auto\")","codeSnippet":"cl_image_tag(\"docs\/landscape-country.jpg\", :aspect_ratio=>\"1:1\", :gravity=>\"auto\", :width=>200, :crop=>\"auto\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:1\").Gravity(\"auto\").Width(200).Crop(\"auto\")).BuildImageTag(\"docs\/landscape-country.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:1\").Gravity(\"auto\").Width(200).Crop(\"auto\")).BuildImageTag(\"docs\/landscape-country.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/landscape-country.jpg').transformation(Transformation()\n\t.resize(Resize.auto().width(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/landscape-country.jpg').transformation(Transformation()\n\t.resize(Resize.auto().width(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:1\").setGravity(\"auto\").setWidth(200).setCrop(\"auto\")).generate(\"docs\/landscape-country.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:1\").setGravity(\"auto\").setWidth(200).setCrop(\"auto\")).generate(\"docs\/landscape-country.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"auto\").width(200).crop(\"auto\")).generate(\"docs\/landscape-country.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:1\").gravity(\"auto\").width(200).crop(\"auto\")).generate(\"docs\/landscape-country.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/landscape-country.jpg').transformation(Transformation()\n\t.resize(Resize.auto().width(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","codeSnippet":"cloudinary.image('docs\/landscape-country.jpg').transformation(Transformation()\n\t.resize(Resize.auto().width(200)\n\t.aspectRatio(\n\tAspectRatio.ar1X1())\n\t.gravity(\n\tGravity.autoGravity())\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/landscape-country.jpg\")\n\t resize(Resize.auto() { width(200)\n\t aspectRatio(\n\tAspectRatio.ar1X1())\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/landscape-country.jpg\")\n\t resize(Resize.auto() { width(200)\n\t aspectRatio(\n\tAspectRatio.ar1X1())\n\t gravity(\n\tGravity.autoGravity())\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/landscape-country.jpg\", {aspect_ratio: \"1:1\", gravity: \"auto\", width: 200, crop: \"auto\"})","codeSnippet":"$.cloudinary.image(\"docs\/landscape-country.jpg\", {aspect_ratio: \"1:1\", gravity: \"auto\", width: 200, crop: \"auto\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/landscape-country.jpg\").resize(\n auto()\n .width(200)\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","codeSnippet":"new CloudinaryImage(\"docs\/landscape-country.jpg\").resize(\n auto()\n .width(200)\n .aspectRatio(ar1X1())\n .gravity(autoGravity())\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_1:1,c_auto,g_auto,w_200\/docs\/landscape-country.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"1:1","crop_mode":"auto","gravity":"auto","width":"200"}],"transformation_string":"ar_1:1,c_auto,g_auto,w_200","url_suffix":"","version":null,"secure":true,"public_id":"docs\/landscape-country.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例

填充裁剪

填充裁剪

自动裁剪

自动裁剪

注释 :

自动裁剪必须带自重力使用对象特有重力并至少有一个宽度、高度和宽度比

web设计调用比图像大相径庭的图像时,你可能通过加贴网块获得更好的裁剪这是哪里auto_pa可大有益

举个例子,拍人持有摄像头

人握相机

需要用相机图片填充1:3宽比空间时,c_auto,g_auto:camera会错失相当大量摄像头

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n auto()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n auto()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n auto()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n auto()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n auto()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n auto()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/camera.jpg', {aspectRatio: \"1:3\", gravity: \"auto:camera\", height: 800, crop: \"auto\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/camera.jpg', {aspectRatio: \"1:3\", gravity: \"auto:camera\", height: 800, crop: \"auto\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/camera.jpg\").image(aspect_ratio=\"1:3\", gravity=\"auto:camera\", height=800, crop=\"auto\")","codeSnippet":"CloudinaryImage(\"docs\/camera.jpg\").image(aspect_ratio=\"1:3\", gravity=\"auto:camera\", height=800, crop=\"auto\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/camera.jpg'))\n\t->resize(Resize::auto()->height(800)\n->aspectRatio(\"1:3\")\n\t->gravity(\n\tGravity::autoGravity()\n\t->autoFocus(\n\tAutoFocus::focusOn(\"camera\"))\n\t)\n\t);","codeSnippet":"(new ImageTag('docs\/camera.jpg'))\n\t->resize(Resize::auto()->height(800)\n->aspectRatio(\"1:3\")\n\t->gravity(\n\tGravity::autoGravity()\n\t->autoFocus(\n\tAutoFocus::focusOn(\"camera\"))\n\t)\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/camera.jpg\", array(\"aspect_ratio\"=>\"1:3\", \"gravity\"=>\"auto:camera\", \"height\"=>800, \"crop\"=>\"auto\"))","codeSnippet":"cl_image_tag(\"docs\/camera.jpg\", array(\"aspect_ratio\"=>\"1:3\", \"gravity\"=>\"auto:camera\", \"height\"=>800, \"crop\"=>\"auto\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:3\").gravity(\"auto:camera\").height(800).crop(\"auto\")).imageTag(\"docs\/camera.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:3\").gravity(\"auto:camera\").height(800).crop(\"auto\")).imageTag(\"docs\/camera.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/camera.jpg\", :aspect_ratio=>\"1:3\", :gravity=>\"auto:camera\", :height=>800, :crop=>\"auto\")","codeSnippet":"cl_image_tag(\"docs\/camera.jpg\", :aspect_ratio=>\"1:3\", :gravity=>\"auto:camera\", :height=>800, :crop=>\"auto\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:3\").Gravity(\"auto:camera\").Height(800).Crop(\"auto\")).BuildImageTag(\"docs\/camera.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:3\").Gravity(\"auto:camera\").Height(800).Crop(\"auto\")).BuildImageTag(\"docs\/camera.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t));","codeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:3\").setGravity(\"auto:camera\").setHeight(800).setCrop(\"auto\")).generate(\"docs\/camera.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:3\").setGravity(\"auto:camera\").setHeight(800).setCrop(\"auto\")).generate(\"docs\/camera.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:3\").gravity(\"auto:camera\").height(800).crop(\"auto\")).generate(\"docs\/camera.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:3\").gravity(\"auto:camera\").height(800).crop(\"auto\")).generate(\"docs\/camera.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t));","codeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.auto().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/camera.jpg\")\n\t resize(Resize.auto() { height(800)\n aspectRatio(\"1:3\")\n\t gravity(\n\tGravity.autoGravity() {\n\t autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t })\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/camera.jpg\")\n\t resize(Resize.auto() { height(800)\n aspectRatio(\"1:3\")\n\t gravity(\n\tGravity.autoGravity() {\n\t autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t })\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/camera.jpg\", {aspect_ratio: \"1:3\", gravity: \"auto:camera\", height: 800, crop: \"auto\"})","codeSnippet":"$.cloudinary.image(\"docs\/camera.jpg\", {aspect_ratio: \"1:3\", gravity: \"auto:camera\", height: 800, crop: \"auto\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n auto()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n auto()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_1:3,c_auto,g_auto:camera,h_800\/docs\/camera.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"1:3","crop_mode":"auto","gravity":"auto:camera","height":"800"}],"transformation_string":"ar_1:3,c_auto,g_auto:camera,h_800","url_suffix":"","version":null,"secure":true,"public_id":"docs\/camera.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 摄像头免贴板

但如果自动贴上它,则所有摄像头都保留在视图中:

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(auto())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(auto())\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(auto())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(auto())\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(auto())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(auto())\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/camera.jpg', {aspectRatio: \"1:3\", background: \"auto\", gravity: \"auto:camera\", height: 800, crop: \"auto_pad\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/camera.jpg', {aspectRatio: \"1:3\", background: \"auto\", gravity: \"auto:camera\", height: 800, crop: \"auto_pad\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/camera.jpg\").image(aspect_ratio=\"1:3\", background=\"auto\", gravity=\"auto:camera\", height=800, crop=\"auto_pad\")","codeSnippet":"CloudinaryImage(\"docs\/camera.jpg\").image(aspect_ratio=\"1:3\", background=\"auto\", gravity=\"auto:camera\", height=800, crop=\"auto_pad\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/camera.jpg'))\n\t->resize(Resize::autoPad()->height(800)\n->aspectRatio(\"1:3\")\n\t->gravity(\n\tGravity::autoGravity()\n\t->autoFocus(\n\tAutoFocus::focusOn(\"camera\"))\n\t)\n\t->background(\n\tBackground::auto())\n\t);","codeSnippet":"(new ImageTag('docs\/camera.jpg'))\n\t->resize(Resize::autoPad()->height(800)\n->aspectRatio(\"1:3\")\n\t->gravity(\n\tGravity::autoGravity()\n\t->autoFocus(\n\tAutoFocus::focusOn(\"camera\"))\n\t)\n\t->background(\n\tBackground::auto())\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/camera.jpg\", array(\"aspect_ratio\"=>\"1:3\", \"background\"=>\"auto\", \"gravity\"=>\"auto:camera\", \"height\"=>800, \"crop\"=>\"auto_pad\"))","codeSnippet":"cl_image_tag(\"docs\/camera.jpg\", array(\"aspect_ratio\"=>\"1:3\", \"background\"=>\"auto\", \"gravity\"=>\"auto:camera\", \"height\"=>800, \"crop\"=>\"auto_pad\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:3\").background(\"auto\").gravity(\"auto:camera\").height(800).crop(\"auto_pad\")).imageTag(\"docs\/camera.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:3\").background(\"auto\").gravity(\"auto:camera\").height(800).crop(\"auto_pad\")).imageTag(\"docs\/camera.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/camera.jpg\", :aspect_ratio=>\"1:3\", :background=>\"auto\", :gravity=>\"auto:camera\", :height=>800, :crop=>\"auto_pad\")","codeSnippet":"cl_image_tag(\"docs\/camera.jpg\", :aspect_ratio=>\"1:3\", :background=>\"auto\", :gravity=>\"auto:camera\", :height=>800, :crop=>\"auto_pad\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:3\").Background(\"auto\").Gravity(\"auto:camera\").Height(800).Crop(\"auto_pad\")).BuildImageTag(\"docs\/camera.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:3\").Background(\"auto\").Gravity(\"auto:camera\").Height(800).Crop(\"auto_pad\")).BuildImageTag(\"docs\/camera.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.autoPad().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t.background(\n\tBackground.auto())\n\t));","codeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.autoPad().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t.background(\n\tBackground.auto())\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:3\").setBackground(\"auto\").setGravity(\"auto:camera\").setHeight(800).setCrop(\"auto_pad\")).generate(\"docs\/camera.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:3\").setBackground(\"auto\").setGravity(\"auto:camera\").setHeight(800).setCrop(\"auto_pad\")).generate(\"docs\/camera.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:3\").background(\"auto\").gravity(\"auto:camera\").height(800).crop(\"auto_pad\")).generate(\"docs\/camera.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:3\").background(\"auto\").gravity(\"auto:camera\").height(800).crop(\"auto_pad\")).generate(\"docs\/camera.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.autoPad().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t.background(\n\tBackground.auto())\n\t));","codeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.autoPad().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t.background(\n\tBackground.auto())\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/camera.jpg\")\n\t resize(Resize.autoPad() { height(800)\n aspectRatio(\"1:3\")\n\t gravity(\n\tGravity.autoGravity() {\n\t autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t })\n\t background(\n\tBackground.auto())\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/camera.jpg\")\n\t resize(Resize.autoPad() { height(800)\n aspectRatio(\"1:3\")\n\t gravity(\n\tGravity.autoGravity() {\n\t autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t })\n\t background(\n\tBackground.auto())\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/camera.jpg\", {aspect_ratio: \"1:3\", background: \"auto\", gravity: \"auto:camera\", height: 800, crop: \"auto_pad\"})","codeSnippet":"$.cloudinary.image(\"docs\/camera.jpg\", {aspect_ratio: \"1:3\", background: \"auto\", gravity: \"auto:camera\", height: 800, crop: \"auto_pad\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(auto())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(auto())\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_1:3,b_auto,c_auto_pad,g_auto:camera,h_800\/docs\/camera.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"1:3","background":"auto","crop_mode":"auto_pad","gravity":"auto:camera","height":"800"}],"transformation_string":"ar_1:3,b_auto,c_auto_pad,g_auto:camera,h_800","url_suffix":"","version":null,"secure":true,"public_id":"docs\/camera.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 相机搭建

在此例中,拼接颜色也自动确定b_aut,但您可以选择任何您喜欢的颜色

或,你甚至可以使用AI生成内容搭建b_gen_填充:

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(generativeFill())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(generativeFill())\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(generativeFill())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(generativeFill())\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(generativeFill())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(generativeFill())\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('docs\/camera.jpg', {aspectRatio: \"1:3\", background: \"gen_fill\", gravity: \"auto:camera\", height: 800, crop: \"auto_pad\"}).toHtml();","codeSnippet":"cloudinary.imageTag('docs\/camera.jpg', {aspectRatio: \"1:3\", background: \"gen_fill\", gravity: \"auto:camera\", height: 800, crop: \"auto_pad\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"docs\/camera.jpg\").image(aspect_ratio=\"1:3\", background=\"gen_fill\", gravity=\"auto:camera\", height=800, crop=\"auto_pad\")","codeSnippet":"CloudinaryImage(\"docs\/camera.jpg\").image(aspect_ratio=\"1:3\", background=\"gen_fill\", gravity=\"auto:camera\", height=800, crop=\"auto_pad\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('docs\/camera.jpg'))\n\t->resize(Resize::autoPad()->height(800)\n->aspectRatio(\"1:3\")\n\t->gravity(\n\tGravity::autoGravity()\n\t->autoFocus(\n\tAutoFocus::focusOn(\"camera\"))\n\t)\n\t->background(\n\tBackground::generativeFill())\n\t);","codeSnippet":"(new ImageTag('docs\/camera.jpg'))\n\t->resize(Resize::autoPad()->height(800)\n->aspectRatio(\"1:3\")\n\t->gravity(\n\tGravity::autoGravity()\n\t->autoFocus(\n\tAutoFocus::focusOn(\"camera\"))\n\t)\n\t->background(\n\tBackground::generativeFill())\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"docs\/camera.jpg\", array(\"aspect_ratio\"=>\"1:3\", \"background\"=>\"gen_fill\", \"gravity\"=>\"auto:camera\", \"height\"=>800, \"crop\"=>\"auto_pad\"))","codeSnippet":"cl_image_tag(\"docs\/camera.jpg\", array(\"aspect_ratio\"=>\"1:3\", \"background\"=>\"gen_fill\", \"gravity\"=>\"auto:camera\", \"height\"=>800, \"crop\"=>\"auto_pad\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:3\").background(\"gen_fill\").gravity(\"auto:camera\").height(800).crop(\"auto_pad\")).imageTag(\"docs\/camera.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().aspectRatio(\"1:3\").background(\"gen_fill\").gravity(\"auto:camera\").height(800).crop(\"auto_pad\")).imageTag(\"docs\/camera.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"docs\/camera.jpg\", :aspect_ratio=>\"1:3\", :background=>\"gen_fill\", :gravity=>\"auto:camera\", :height=>800, :crop=>\"auto_pad\")","codeSnippet":"cl_image_tag(\"docs\/camera.jpg\", :aspect_ratio=>\"1:3\", :background=>\"gen_fill\", :gravity=>\"auto:camera\", :height=>800, :crop=>\"auto_pad\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:3\").Background(\"gen_fill\").Gravity(\"auto:camera\").Height(800).Crop(\"auto_pad\")).BuildImageTag(\"docs\/camera.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().AspectRatio(\"1:3\").Background(\"gen_fill\").Gravity(\"auto:camera\").Height(800).Crop(\"auto_pad\")).BuildImageTag(\"docs\/camera.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.autoPad().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t.background(\n\tBackground.generativeFill())\n\t));","codeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.autoPad().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t.background(\n\tBackground.generativeFill())\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:3\").setBackground(\"gen_fill\").setGravity(\"auto:camera\").setHeight(800).setCrop(\"auto_pad\")).generate(\"docs\/camera.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setAspectRatio(\"1:3\").setBackground(\"gen_fill\").setGravity(\"auto:camera\").setHeight(800).setCrop(\"auto_pad\")).generate(\"docs\/camera.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:3\").background(\"gen_fill\").gravity(\"auto:camera\").height(800).crop(\"auto_pad\")).generate(\"docs\/camera.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().aspectRatio(\"1:3\").background(\"gen_fill\").gravity(\"auto:camera\").height(800).crop(\"auto_pad\")).generate(\"docs\/camera.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.autoPad().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t.background(\n\tBackground.generativeFill())\n\t));","codeSnippet":"cloudinary.image('docs\/camera.jpg').transformation(Transformation()\n\t.resize(Resize.autoPad().height(800)\n.aspectRatio(\"1:3\")\n\t.gravity(\n\tGravity.autoGravity()\n\t.autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t)\n\t.background(\n\tBackground.generativeFill())\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/camera.jpg\")\n\t resize(Resize.autoPad() { height(800)\n aspectRatio(\"1:3\")\n\t gravity(\n\tGravity.autoGravity() {\n\t autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t })\n\t background(\n\tBackground.generativeFill())\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"docs\/camera.jpg\")\n\t resize(Resize.autoPad() { height(800)\n aspectRatio(\"1:3\")\n\t gravity(\n\tGravity.autoGravity() {\n\t autoFocus(\n\tAutoFocus.focusOn(\"camera\"))\n\t })\n\t background(\n\tBackground.generativeFill())\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"docs\/camera.jpg\", {aspect_ratio: \"1:3\", background: \"gen_fill\", gravity: \"auto:camera\", height: 800, crop: \"auto_pad\"})","codeSnippet":"$.cloudinary.image(\"docs\/camera.jpg\", {aspect_ratio: \"1:3\", background: \"gen_fill\", gravity: \"auto:camera\", height: 800, crop: \"auto_pad\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(generativeFill())\n);","codeSnippet":"new CloudinaryImage(\"docs\/camera.jpg\").resize(\n autoPad()\n .height(800)\n .aspectRatio(\"1:3\")\n .gravity(autoGravity().autoFocus(focusOn(\"camera\")))\n .background(generativeFill())\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/ar_1:3,b_gen_fill,c_auto_pad,g_auto:camera,h_800\/docs\/camera.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"aspect_ratio":"1:3","background":"gen_fill","crop_mode":"auto_pad","gravity":"auto:camera","height":"800"}],"transformation_string":"ar_1:3,b_gen_fill,c_auto_pad,g_auto:camera,h_800","url_suffix":"","version":null,"secure":true,"public_id":"docs\/camera.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 相机搭建

C_aut最新自动变换并用g_aut,f_autq_aut以后再用不着手动调整图片

记住,为方便编码这些变换,你可以使用我们中任何一个SDKs视环境而定 JavaScript基础框架,如React和Vue,后端语言如PHP和Python,或甚至移动框架如Kotlin或Flute

学习更多自动裁剪优化知识,并学习全套其他变换贝斯特游戏大厅官网入口可编程媒体文件.

if you haven't注册云形注册免费并看到魔术自己

回顶

特征邮箱

Baidu
map