以网站/应用开发者或所有者的身份,你无疑体验到用户或网站访问者分享内容时的公平漏洞和误差。新闻媒体网站、社交网络或电子商务网站等多端网站都选择使用博客文章或图片等“相似”或“分享”内容社会网站分享时显示共享内容片段与特写图像并发网站内容在社交网络中接触最大并吸引更多访问者
显示错误特写图片或正确图像显示时质量为子集网站分享的图像或内容都归你所有吗?文章列举五大方法来克服挑战并创建持续用户经验,
文本抽象性很重要 内容特写图像则更为重要脸书LinkedIn等广受欢迎的社交网络图片在今日发挥更大作用,图像质量和内容对加深用户参与至关紧要,最终导致更多分享更重要的是正确图像显示为适当的高分辨率, 以最优外观和感知内容
有一些方法可以保证你图像以最优形式分享首端提供脸书访问版本图像高分辨率或改名可实现此点添加水印标识或简单文本叠加或可创建图像不同片段,专为分享目的使用举例说,您可以在单图像中显示两张图片以显示人或产品对比
云形系统使你很容易解决所有这些问题,使你上传单高分辨率图像并随后调整以构建社交网络片段图片五大方式优化分享社交网络
社交网络通常猜想用哪张图像按分辨率和页面定位上加元标签可以反制,允许你决定使用哪一个元标签face定义属性命名og:image
页面页眉中,其他网络需要使用其他属性名,例如itemprop='image'
Google+社交网络对图像有具体需求提升脸书参与度,例如,你需要遵守特定约束度,如最小图像大小和宽比这对于脸书ads图片和移动设备显示图像尤其重要
假设您的电子商务网站图像太小无法满足脸书的要求通常你需要两张相片:一图供网站分享,一图分享外加,如果使用CMS设置图像链接元标签,简单用URL填入高清晰度图像
带云化图像变换中,您可使用原创高分辨率图像并编程调整供任何地方使用页面图像小缩略图而脸书分享图像(使用元属性 URL)可全尺寸高分辨率或定制分辨率图像
i-res2464x1640图像上传皮包
身份证
<\/Image>","codeSnippet":"
\n\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(\"leather_bag.jpg\");","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\");","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\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(\"leather_bag.jpg\");","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":"
<\/cl-image>","codeSnippet":"
\n\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(\"leather_bag.jpg\");","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('leather_bag.jpg').toHtml();","codeSnippet":"cloudinary.imageTag('leather_bag.jpg').toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image()","codeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image()","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('leather_bag.jpg'));","codeSnippet":"(new ImageTag('leather_bag.jpg'));","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"leather_bag.jpg\")","codeSnippet":"cl_image_tag(\"leather_bag.jpg\")","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().imageTag(\"leather_bag.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().imageTag(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"leather_bag.jpg\")","codeSnippet":"cl_image_tag(\"leather_bag.jpg\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.BuildImageTag(\"leather_bag.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.BuildImageTag(\"leather_bag.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation());","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation());","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().generate(\"leather_bag.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().generate(\"leather_bag.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().generate(\"leather_bag.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().generate(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation());","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation());","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag.jpg\") \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag.jpg\") \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(\"leather_bag.jpg\")","codeSnippet":"$.cloudinary.image(\"leather_bag.jpg\")","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(\"leather_bag.jpg\");","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/leather_bag.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[],"transformation_string":"","url_suffix":"","version":"","secure":true,"public_id":"leather_bag.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
网页中你可能想加入图像小缩略图下方例子生成300x220缩略图,完全合用网页
<\/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(\"leather_bag.jpg\").resize(\n thumbnail()\n .width(300)\n .height(220)\n .gravity(focusOn(custom()))\n);","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\").resize(\n thumbnail()\n .width(300)\n .height(220)\n .gravity(focusOn(custom()))\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(\"leather_bag.jpg\").resize(\n thumbnail()\n .width(300)\n .height(220)\n .gravity(focusOn(custom()))\n);","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\").resize(\n thumbnail()\n .width(300)\n .height(220)\n .gravity(focusOn(custom()))\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(\"leather_bag.jpg\").resize(\n thumbnail()\n .width(300)\n .height(220)\n .gravity(focusOn(custom()))\n);","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\").resize(\n thumbnail()\n .width(300)\n .height(220)\n .gravity(focusOn(custom()))\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('leather_bag.jpg', {width: 300, height: 220, gravity: \"custom\", crop: \"thumb\"}).toHtml();","codeSnippet":"cloudinary.imageTag('leather_bag.jpg', {width: 300, height: 220, gravity: \"custom\", 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(\"leather_bag.jpg\").image(width=300, height=220, gravity=\"custom\", crop=\"thumb\")","codeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image(width=300, height=220, gravity=\"custom\", 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('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(300)\n->height(220)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\n\t);","codeSnippet":"(new ImageTag('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(300)\n->height(220)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\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(\"leather_bag.jpg\", array(\"width\"=>300, \"height\"=>220, \"gravity\"=>\"custom\", \"crop\"=>\"thumb\"))","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", array(\"width\"=>300, \"height\"=>220, \"gravity\"=>\"custom\", \"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().width(300).height(220).gravity(\"custom\").crop(\"thumb\")).imageTag(\"leather_bag.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().width(300).height(220).gravity(\"custom\").crop(\"thumb\")).imageTag(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"leather_bag.jpg\", :width=>300, :height=>220, :gravity=>\"custom\", :crop=>\"thumb\")","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", :width=>300, :height=>220, :gravity=>\"custom\", :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().Width(300).Height(220).Gravity(\"custom\").Crop(\"thumb\")).BuildImageTag(\"leather_bag.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(300).Height(220).Gravity(\"custom\").Crop(\"thumb\")).BuildImageTag(\"leather_bag.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(300)\n.height(220)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(300)\n.height(220)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\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().setWidth(300).setHeight(220).setGravity(\"custom\").setCrop(\"thumb\")).generate(\"leather_bag.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(300).setHeight(220).setGravity(\"custom\").setCrop(\"thumb\")).generate(\"leather_bag.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().width(300).height(220).gravity(\"custom\").crop(\"thumb\")).generate(\"leather_bag.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().width(300).height(220).gravity(\"custom\").crop(\"thumb\")).generate(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(300)\n.height(220)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(300)\n.height(220)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\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(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(300)\n height(220)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(300)\n height(220)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\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(\"leather_bag.jpg\", {width: 300, height: 220, gravity: \"custom\", crop: \"thumb\"})","codeSnippet":"$.cloudinary.image(\"leather_bag.jpg\", {width: 300, height: 220, gravity: \"custom\", 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(\"leather_bag.jpg\").resize(\n thumbnail()\n .width(300)\n .height(220)\n .gravity(focusOn(custom()))\n);","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\").resize(\n thumbnail()\n .width(300)\n .height(220)\n .gravity(focusOn(custom()))\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/w_300,h_220,g_custom,c_thumb\/leather_bag.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[{"width":"300","height":"220","gravity":"custom","crop_mode":"thumb"}],"transformation_string":"w_300,h_220,g_custom,c_thumb","url_suffix":"","version":"","secure":true,"public_id":"leather_bag.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
现在,您可以在HTML页面上添加元标签,教脸书使用大得多的1200x900像素,例如:
<元数据内容类='https://res.www.agrosoland.com/demo/image/upload/w_1200,h_900,g_custom,c_thumb/leather_bag.jpg'属性类=Og:image>
代码语言htmlXML高山市xml)
如果内容传播到病毒中,你可能想要信用,而不会简单地在互联网上传播到所有与原创文章无关的地方。可回溯图像简单化,添加标志水印,创建新图像并相应设置元标签Cloudinary可编程添加标识或任何特定图像,
下图表示云形标识为水印叠加上传图像动态添加为叠加值,而颜色亮度则提高,不透明度降为25%以产生半透明结果
<\/Image>","codeSnippet":"
\n\t
\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(400)\n .height(300)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"cloudinary_icon\").transformation(\n new Transformation()\n .resize(scale().width(0.5).relative())\n .adjust(opacity(25))\n .adjust(brightness().level(200))\n )\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(400)\n .height(300)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"cloudinary_icon\").transformation(\n new Transformation()\n .resize(scale().width(0.5).relative())\n .adjust(opacity(25))\n .adjust(brightness().level(200))\n )\n )\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\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(400)\n .height(300)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"cloudinary_icon\").transformation(\n new Transformation()\n .resize(scale().width(0.5).relative())\n .adjust(opacity(25))\n .adjust(brightness().level(200))\n )\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(400)\n .height(300)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"cloudinary_icon\").transformation(\n new Transformation()\n .resize(scale().width(0.5).relative())\n .adjust(opacity(25))\n .adjust(brightness().level(200))\n )\n )\n );","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":"
<\/cl-transformation>
<\/cl-transformation> <\/cl-image>","codeSnippet":"
\n\t
\n\t<\/cl-transformation>\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(400)\n .height(300)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"cloudinary_icon\").transformation(\n new Transformation()\n .resize(scale().width(0.5).relative())\n .adjust(opacity(25))\n .adjust(brightness().level(200))\n )\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(400)\n .height(300)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"cloudinary_icon\").transformation(\n new Transformation()\n .resize(scale().width(0.5).relative())\n .adjust(opacity(25))\n .adjust(brightness().level(200))\n )\n )\n );","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('leather_bag.jpg', {transformation: [ {width: 400, height: 300, gravity: \"custom\", crop: \"thumb\"}, {overlay: new cloudinary.Layer().publicId(\"cloudinary_icon\"), opacity: 25, effect: \"brightness:200\", width: \"0.5\", flags: \"relative\"} ]}).toHtml();","codeSnippet":"cloudinary.imageTag('leather_bag.jpg', {transformation: [\n {width: 400, height: 300, gravity: \"custom\", crop: \"thumb\"},\n {overlay: new cloudinary.Layer().publicId(\"cloudinary_icon\"), opacity: 25, effect: \"brightness:200\", width: \"0.5\", flags: \"relative\"}\n ]}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image(transformation=[ {'width': 400, 'height': 300, 'gravity': \"custom\", 'crop': \"thumb\"}, {'overlay': \"cloudinary_icon\", 'opacity': 25, 'effect': \"brightness:200\", 'width': \"0.5\", 'flags': \"relative\"} ])","codeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image(transformation=[\n {'width': 400, 'height': 300, 'gravity': \"custom\", 'crop': \"thumb\"},\n {'overlay': \"cloudinary_icon\", 'opacity': 25, 'effect': \"brightness:200\", 'width': \"0.5\", 'flags': \"relative\"}\n ])","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(400)\n->height(300)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\n\t)\n\t->overlay(Overlay::source(\n\tSource::image(\"cloudinary_icon\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(0.5)\n\t->relative()\n\t)\n\t->adjust(Adjust::opacity(25))\n\t->adjust(Adjust::brightness()->level(200)))\n\t));","codeSnippet":"(new ImageTag('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(400)\n->height(300)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\n\t)\n\t->overlay(Overlay::source(\n\tSource::image(\"cloudinary_icon\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(0.5)\n\t->relative()\n\t)\n\t->adjust(Adjust::opacity(25))\n\t->adjust(Adjust::brightness()->level(200)))\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(\"leather_bag.jpg\", array(\"transformation\"=>array( array(\"width\"=>400, \"height\"=>300, \"gravity\"=>\"custom\", \"crop\"=>\"thumb\"), array(\"overlay\"=>\"cloudinary_icon\", \"opacity\"=>25, \"effect\"=>\"brightness:200\", \"width\"=>\"0.5\", \"flags\"=>\"relative\") )))","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", array(\"transformation\"=>array(\n array(\"width\"=>400, \"height\"=>300, \"gravity\"=>\"custom\", \"crop\"=>\"thumb\"),\n array(\"overlay\"=>\"cloudinary_icon\", \"opacity\"=>25, \"effect\"=>\"brightness:200\", \"width\"=>\"0.5\", \"flags\"=>\"relative\")\n )))","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().width(400).height(300).gravity(\"custom\").crop(\"thumb\").chain() .overlay(new Layer().publicId(\"cloudinary_icon\")).opacity(25).effect(\"brightness:200\").width(0.5).flags(\"relative\")).imageTag(\"leather_bag.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation()\n .width(400).height(300).gravity(\"custom\").crop(\"thumb\").chain()\n .overlay(new Layer().publicId(\"cloudinary_icon\")).opacity(25).effect(\"brightness:200\").width(0.5).flags(\"relative\")).imageTag(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"leather_bag.jpg\", :transformation=>[ {:width=>400, :height=>300, :gravity=>\"custom\", :crop=>\"thumb\"}, {:overlay=>\"cloudinary_icon\", :opacity=>25, :effect=>\"brightness:200\", :width=>0.5, :flags=>\"relative\"} ])","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", :transformation=>[\n {:width=>400, :height=>300, :gravity=>\"custom\", :crop=>\"thumb\"},\n {:overlay=>\"cloudinary_icon\", :opacity=>25, :effect=>\"brightness:200\", :width=>0.5, :flags=>\"relative\"}\n ])","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().Width(400).Height(300).Gravity(\"custom\").Crop(\"thumb\").Chain() .Overlay(new Layer().PublicId(\"cloudinary_icon\")).Opacity(25).Effect(\"brightness:200\").Width(0.5).Flags(\"relative\")).BuildImageTag(\"leather_bag.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation()\n .Width(400).Height(300).Gravity(\"custom\").Crop(\"thumb\").Chain()\n .Overlay(new Layer().PublicId(\"cloudinary_icon\")).Opacity(25).Effect(\"brightness:200\").Width(0.5).Flags(\"relative\")).BuildImageTag(\"leather_bag.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(400)\n.height(300)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.overlay(Overlay.source(\n\tSource.image(\"cloudinary_icon\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(0.5)\n\t.relative()\n\t)\n\t.adjust(Adjust.opacity(25))\n\t.adjust(Adjust.brightness().level(200)))\n\t)));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(400)\n.height(300)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.overlay(Overlay.source(\n\tSource.image(\"cloudinary_icon\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(0.5)\n\t.relative()\n\t)\n\t.adjust(Adjust.opacity(25))\n\t.adjust(Adjust.brightness().level(200)))\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().setWidth(400).setHeight(300).setGravity(\"custom\").setCrop(\"thumb\").chain() .setOverlay(\"cloudinary_icon\").setOpacity(25).setEffect(\"brightness:200\").setWidth(0.5).setFlags(\"relative\")).generate(\"leather_bag.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()\n .setWidth(400).setHeight(300).setGravity(\"custom\").setCrop(\"thumb\").chain()\n .setOverlay(\"cloudinary_icon\").setOpacity(25).setEffect(\"brightness:200\").setWidth(0.5).setFlags(\"relative\")).generate(\"leather_bag.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().width(400).height(300).gravity(\"custom\").crop(\"thumb\").chain() .overlay(new Layer().publicId(\"cloudinary_icon\")).opacity(25).effect(\"brightness:200\").width(0.5).flags(\"relative\")).generate(\"leather_bag.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation()\n .width(400).height(300).gravity(\"custom\").crop(\"thumb\").chain()\n .overlay(new Layer().publicId(\"cloudinary_icon\")).opacity(25).effect(\"brightness:200\").width(0.5).flags(\"relative\")).generate(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(400)\n.height(300)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.overlay(Overlay.source(\n\tSource.image(\"cloudinary_icon\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(0.5)\n\t.relative()\n\t)\n\t.adjust(Adjust.opacity(25))\n\t.adjust(Adjust.brightness().level(200)))\n\t)));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(400)\n.height(300)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.overlay(Overlay.source(\n\tSource.image(\"cloudinary_icon\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(0.5)\n\t.relative()\n\t)\n\t.adjust(Adjust.opacity(25))\n\t.adjust(Adjust.brightness().level(200)))\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(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(400)\n height(300)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t })\n\t overlay(Overlay.source(\n\tSource.image(\"cloudinary_icon\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(0.5F)\n\t relative()\n\t })\n\t adjust(Adjust.opacity(25))\n\t adjust(Adjust.brightness() { level(200) }) })\n\t })) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(400)\n height(300)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t })\n\t overlay(Overlay.source(\n\tSource.image(\"cloudinary_icon\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(0.5F)\n\t relative()\n\t })\n\t adjust(Adjust.opacity(25))\n\t adjust(Adjust.brightness() { level(200) }) })\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(\"leather_bag.jpg\", {transformation: [ {width: 400, height: 300, gravity: \"custom\", crop: \"thumb\"}, {overlay: new cloudinary.Layer().publicId(\"cloudinary_icon\"), opacity: 25, effect: \"brightness:200\", width: \"0.5\", flags: \"relative\"} ]})","codeSnippet":"$.cloudinary.image(\"leather_bag.jpg\", {transformation: [\n {width: 400, height: 300, gravity: \"custom\", crop: \"thumb\"},\n {overlay: new cloudinary.Layer().publicId(\"cloudinary_icon\"), opacity: 25, effect: \"brightness:200\", width: \"0.5\", flags: \"relative\"}\n ]})","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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(400)\n .height(300)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"cloudinary_icon\").transformation(\n new Transformation()\n .resize(scale().width(0.5).relative())\n .adjust(opacity(25))\n .adjust(brightness().level(200))\n )\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(400)\n .height(300)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"cloudinary_icon\").transformation(\n new Transformation()\n .resize(scale().width(0.5).relative())\n .adjust(opacity(25))\n .adjust(brightness().level(200))\n )\n )\n );","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/w_400,h_300,g_custom,c_thumb\/l_cloudinary_icon,o_25,e_brightness:200,w_0.5,fl_relative\/leather_bag.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[{"width":"400","height":"300","gravity":"custom","crop_mode":"thumb"},{"overlay":"cloudinary_icon","opacity":"25","effect":"brightness:200","width":"0.5","flags":"relative"}],"transformation_string":"w_400,h_300,g_custom,c_thumb\/l_cloudinary_icon,o_25,e_brightness:200,w_0.5,fl_relative","url_suffix":"","version":"","secure":true,"public_id":"leather_bag.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
可添加文本创建可识别图像网站名 摄影师 产品名 或取笑器文本调用云化文本可动态添加简单加叠并插入你期望文本,具体说明字体样式和大小可能想看一看如何用云创建水印或文本覆盖图像.
下图显示多方法之一文本可动态添加成图像叠加并转换为最佳定位识别标题'Leather笔记本电脑包'使用Arial字体被动态添加成半透明黑条上方的叠加
<\/Image>","codeSnippet":"
\n\t
\n\t
\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(250)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"black_bar\").transformation(\n new Transformation()\n .resize(scale().width(\"1.0\").height(0.1).relative())\n .adjust(opacity(50))\n )\n ).position(new Position().gravity(compass(\"south\")))\n )\n .overlay(\n source(\n text(\n \"Leather laptop bag\",\n new TextStyle(\"Arial\", 16).fontWeight(\"bold\")\n ).textColor(\"white\")\n ).position(\n new Position()\n .gravity(compass(\"south\"))\n .offsetY(4)\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(250)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"black_bar\").transformation(\n new Transformation()\n .resize(scale().width(\"1.0\").height(0.1).relative())\n .adjust(opacity(50))\n )\n ).position(new Position().gravity(compass(\"south\")))\n )\n .overlay(\n source(\n text(\n \"Leather laptop bag\",\n new TextStyle(\"Arial\", 16).fontWeight(\"bold\")\n ).textColor(\"white\")\n ).position(\n new Position()\n .gravity(compass(\"south\"))\n .offsetY(4)\n )\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\t
\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(250)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"black_bar\").transformation(\n new Transformation()\n .resize(scale().width(\"1.0\").height(0.1).relative())\n .adjust(opacity(50))\n )\n ).position(new Position().gravity(compass(\"south\")))\n )\n .overlay(\n source(\n text(\n \"Leather laptop bag\",\n new TextStyle(\"Arial\", 16).fontWeight(\"bold\")\n ).textColor(\"white\")\n ).position(\n new Position()\n .gravity(compass(\"south\"))\n .offsetY(4)\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(250)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"black_bar\").transformation(\n new Transformation()\n .resize(scale().width(\"1.0\").height(0.1).relative())\n .adjust(opacity(50))\n )\n ).position(new Position().gravity(compass(\"south\")))\n )\n .overlay(\n source(\n text(\n \"Leather laptop bag\",\n new TextStyle(\"Arial\", 16).fontWeight(\"bold\")\n ).textColor(\"white\")\n ).position(\n new Position()\n .gravity(compass(\"south\"))\n .offsetY(4)\n )\n );","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":"
<\/cl-transformation>
<\/cl-transformation>
<\/cl-transformation> <\/cl-image>","codeSnippet":"
\n\t
\n\t<\/cl-transformation>\n\t
\n\t<\/cl-transformation>\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(250)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"black_bar\").transformation(\n new Transformation()\n .resize(scale().width(\"1.0\").height(0.1).relative())\n .adjust(opacity(50))\n )\n ).position(new Position().gravity(compass(\"south\")))\n )\n .overlay(\n source(\n text(\n \"Leather laptop bag\",\n new TextStyle(\"Arial\", 16).fontWeight(\"bold\")\n ).textColor(\"white\")\n ).position(\n new Position()\n .gravity(compass(\"south\"))\n .offsetY(4)\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(250)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"black_bar\").transformation(\n new Transformation()\n .resize(scale().width(\"1.0\").height(0.1).relative())\n .adjust(opacity(50))\n )\n ).position(new Position().gravity(compass(\"south\")))\n )\n .overlay(\n source(\n text(\n \"Leather laptop bag\",\n new TextStyle(\"Arial\", 16).fontWeight(\"bold\")\n ).textColor(\"white\")\n ).position(\n new Position()\n .gravity(compass(\"south\"))\n .offsetY(4)\n )\n );","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('leather_bag.jpg', {transformation: [ {width: 350, height: 250, gravity: \"custom\", crop: \"thumb\"}, {overlay: new cloudinary.Layer().publicId(\"black_bar\"), width: \"1.0\", height: \"0.1\", flags: \"relative\", gravity: \"south\", opacity: 50}, {overlay: new cloudinary.TextLayer().fontFamily(\"Arial\").fontSize(16).fontWeight(\"bold\").text(\"Leather%20laptop%20bag\"), color: \"white\", gravity: \"south\", y: 4} ]}).toHtml();","codeSnippet":"cloudinary.imageTag('leather_bag.jpg', {transformation: [\n {width: 350, height: 250, gravity: \"custom\", crop: \"thumb\"},\n {overlay: new cloudinary.Layer().publicId(\"black_bar\"), width: \"1.0\", height: \"0.1\", flags: \"relative\", gravity: \"south\", opacity: 50},\n {overlay: new cloudinary.TextLayer().fontFamily(\"Arial\").fontSize(16).fontWeight(\"bold\").text(\"Leather%20laptop%20bag\"), color: \"white\", gravity: \"south\", y: 4}\n ]}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image(transformation=[ {'width': 350, 'height': 250, 'gravity': \"custom\", 'crop': \"thumb\"}, {'overlay': \"black_bar\", 'width': \"1.0\", 'height': \"0.1\", 'flags': \"relative\", 'gravity': \"south\", 'opacity': 50}, {'overlay': {'font_family': \"Arial\", 'font_size': 16, 'font_weight': \"bold\", 'text': \"Leather%20laptop%20bag\"}, 'color': \"white\", 'gravity': \"south\", 'y': 4} ])","codeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image(transformation=[\n {'width': 350, 'height': 250, 'gravity': \"custom\", 'crop': \"thumb\"},\n {'overlay': \"black_bar\", 'width': \"1.0\", 'height': \"0.1\", 'flags': \"relative\", 'gravity': \"south\", 'opacity': 50},\n {'overlay': {'font_family': \"Arial\", 'font_size': 16, 'font_weight': \"bold\", 'text': \"Leather%20laptop%20bag\"}, 'color': \"white\", 'gravity': \"south\", 'y': 4}\n ])","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(350)\n->height(250)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\n\t)\n\t->overlay(Overlay::source(\n\tSource::image(\"black_bar\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.0)\n->height(0.1)\n\t->relative()\n\t)\n\t->adjust(Adjust::opacity(50)))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::compass(\n\tCompass::south()))\n\t)\n\t)\n\t->overlay(Overlay::source(\n\tSource::text(\"Leather laptop bag\",(new TextStyle(\"Arial\",16))\n\t->fontWeight(\n\tFontWeight::bold())\n\t)\n\t->textColor(Color::WHITE)\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::compass(\n\tCompass::south()))\n->offsetY(4))\n\t);","codeSnippet":"(new ImageTag('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(350)\n->height(250)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\n\t)\n\t->overlay(Overlay::source(\n\tSource::image(\"black_bar\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.0)\n->height(0.1)\n\t->relative()\n\t)\n\t->adjust(Adjust::opacity(50)))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::compass(\n\tCompass::south()))\n\t)\n\t)\n\t->overlay(Overlay::source(\n\tSource::text(\"Leather laptop bag\",(new TextStyle(\"Arial\",16))\n\t->fontWeight(\n\tFontWeight::bold())\n\t)\n\t->textColor(Color::WHITE)\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::compass(\n\tCompass::south()))\n->offsetY(4))\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(\"leather_bag.jpg\", array(\"transformation\"=>array( array(\"width\"=>350, \"height\"=>250, \"gravity\"=>\"custom\", \"crop\"=>\"thumb\"), array(\"overlay\"=>\"black_bar\", \"width\"=>\"1.0\", \"height\"=>\"0.1\", \"flags\"=>\"relative\", \"gravity\"=>\"south\", \"opacity\"=>50), array(\"overlay\"=>array(\"font_family\"=>\"Arial\", \"font_size\"=>16, \"font_weight\"=>\"bold\", \"text\"=>\"Leather%20laptop%20bag\"), \"color\"=>\"white\", \"gravity\"=>\"south\", \"y\"=>4) )))","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", array(\"transformation\"=>array(\n array(\"width\"=>350, \"height\"=>250, \"gravity\"=>\"custom\", \"crop\"=>\"thumb\"),\n array(\"overlay\"=>\"black_bar\", \"width\"=>\"1.0\", \"height\"=>\"0.1\", \"flags\"=>\"relative\", \"gravity\"=>\"south\", \"opacity\"=>50),\n array(\"overlay\"=>array(\"font_family\"=>\"Arial\", \"font_size\"=>16, \"font_weight\"=>\"bold\", \"text\"=>\"Leather%20laptop%20bag\"), \"color\"=>\"white\", \"gravity\"=>\"south\", \"y\"=>4)\n )))","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().width(350).height(250).gravity(\"custom\").crop(\"thumb\").chain() .overlay(new Layer().publicId(\"black_bar\")).width(1.0).height(0.1).flags(\"relative\").gravity(\"south\").opacity(50).chain() .overlay(new TextLayer().fontFamily(\"Arial\").fontSize(16).fontWeight(\"bold\").text(\"Leather%20laptop%20bag\")).color(\"white\").gravity(\"south\").y(4)).imageTag(\"leather_bag.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation()\n .width(350).height(250).gravity(\"custom\").crop(\"thumb\").chain()\n .overlay(new Layer().publicId(\"black_bar\")).width(1.0).height(0.1).flags(\"relative\").gravity(\"south\").opacity(50).chain()\n .overlay(new TextLayer().fontFamily(\"Arial\").fontSize(16).fontWeight(\"bold\").text(\"Leather%20laptop%20bag\")).color(\"white\").gravity(\"south\").y(4)).imageTag(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"leather_bag.jpg\", :transformation=>[ {:width=>350, :height=>250, :gravity=>\"custom\", :crop=>\"thumb\"}, {:overlay=>\"black_bar\", :width=>1.0, :height=>0.1, :flags=>\"relative\", :gravity=>\"south\", :opacity=>50}, {:overlay=>{:font_family=>\"Arial\", :font_size=>16, :font_weight=>\"bold\", :text=>\"Leather%20laptop%20bag\"}, :color=>\"white\", :gravity=>\"south\", :y=>4} ])","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", :transformation=>[\n {:width=>350, :height=>250, :gravity=>\"custom\", :crop=>\"thumb\"},\n {:overlay=>\"black_bar\", :width=>1.0, :height=>0.1, :flags=>\"relative\", :gravity=>\"south\", :opacity=>50},\n {:overlay=>{:font_family=>\"Arial\", :font_size=>16, :font_weight=>\"bold\", :text=>\"Leather%20laptop%20bag\"}, :color=>\"white\", :gravity=>\"south\", :y=>4}\n ])","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().Width(350).Height(250).Gravity(\"custom\").Crop(\"thumb\").Chain() .Overlay(new Layer().PublicId(\"black_bar\")).Width(1.0).Height(0.1).Flags(\"relative\").Gravity(\"south\").Opacity(50).Chain() .Overlay(new TextLayer().FontFamily(\"Arial\").FontSize(16).FontWeight(\"bold\").Text(\"Leather%20laptop%20bag\")).Color(\"white\").Gravity(\"south\").Y(4)).BuildImageTag(\"leather_bag.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation()\n .Width(350).Height(250).Gravity(\"custom\").Crop(\"thumb\").Chain()\n .Overlay(new Layer().PublicId(\"black_bar\")).Width(1.0).Height(0.1).Flags(\"relative\").Gravity(\"south\").Opacity(50).Chain()\n .Overlay(new TextLayer().FontFamily(\"Arial\").FontSize(16).FontWeight(\"bold\").Text(\"Leather%20laptop%20bag\")).Color(\"white\").Gravity(\"south\").Y(4)).BuildImageTag(\"leather_bag.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.addTransformation(\"w_350,h_250,g_custom,c_thumb\/l_black_bar,w_1.0,h_0.1,fl_relative,g_south,o_50\/l_text:Arial_16_bold:Leather laptop bag,co_white,g_south,y_4\"));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.addTransformation(\"w_350,h_250,g_custom,c_thumb\/l_black_bar,w_1.0,h_0.1,fl_relative,g_south,o_50\/l_text:Arial_16_bold:Leather laptop bag,co_white,g_south,y_4\"));","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().setWidth(350).setHeight(250).setGravity(\"custom\").setCrop(\"thumb\").chain() .setOverlay(\"black_bar\").setWidth(1.0).setHeight(0.1).setFlags(\"relative\").setGravity(\"south\").setOpacity(50).chain() .setOverlay(\"text:Arial_16_bold:Leather%20laptop%20bag\").setColor(\"white\").setGravity(\"south\").setY(4)).generate(\"leather_bag.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()\n .setWidth(350).setHeight(250).setGravity(\"custom\").setCrop(\"thumb\").chain()\n .setOverlay(\"black_bar\").setWidth(1.0).setHeight(0.1).setFlags(\"relative\").setGravity(\"south\").setOpacity(50).chain()\n .setOverlay(\"text:Arial_16_bold:Leather%20laptop%20bag\").setColor(\"white\").setGravity(\"south\").setY(4)).generate(\"leather_bag.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().width(350).height(250).gravity(\"custom\").crop(\"thumb\").chain() .overlay(new Layer().publicId(\"black_bar\")).width(1.0).height(0.1).flags(\"relative\").gravity(\"south\").opacity(50).chain() .overlay(new TextLayer().fontFamily(\"Arial\").fontSize(16).fontWeight(\"bold\").text(\"Leather%20laptop%20bag\")).color(\"white\").gravity(\"south\").y(4)).generate(\"leather_bag.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation()\n .width(350).height(250).gravity(\"custom\").crop(\"thumb\").chain()\n .overlay(new Layer().publicId(\"black_bar\")).width(1.0).height(0.1).flags(\"relative\").gravity(\"south\").opacity(50).chain()\n .overlay(new TextLayer().fontFamily(\"Arial\").fontSize(16).fontWeight(\"bold\").text(\"Leather%20laptop%20bag\")).color(\"white\").gravity(\"south\").y(4)).generate(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.addTransformation(\"w_350,h_250,g_custom,c_thumb\/l_black_bar,w_1.0,h_0.1,fl_relative,g_south,o_50\/l_text:Arial_16_bold:Leather laptop bag,co_white,g_south,y_4\"));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.addTransformation(\"w_350,h_250,g_custom,c_thumb\/l_black_bar,w_1.0,h_0.1,fl_relative,g_south,o_50\/l_text:Arial_16_bold:Leather laptop bag,co_white,g_south,y_4\"));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(350)\n height(250)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t })\n\t overlay(Overlay.source(\n\tSource.image(\"black_bar\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.0F)\n height(0.1F)\n\t relative()\n\t })\n\t adjust(Adjust.opacity(50)) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.compass(\n\tCompass.south()))\n\t })\n\t })\n\t overlay(Overlay.source(\n\tSource.text(\"Leather laptop bag\",TextStyle(\"Arial\",16) {\n\t fontWeight(\n\tFontWeight.bold())\n\t }) {\n\t textColor(Color.WHITE)\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.compass(\n\tCompass.south()))\n offsetY(4) })\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(350)\n height(250)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t })\n\t overlay(Overlay.source(\n\tSource.image(\"black_bar\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.0F)\n height(0.1F)\n\t relative()\n\t })\n\t adjust(Adjust.opacity(50)) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.compass(\n\tCompass.south()))\n\t })\n\t })\n\t overlay(Overlay.source(\n\tSource.text(\"Leather laptop bag\",TextStyle(\"Arial\",16) {\n\t fontWeight(\n\tFontWeight.bold())\n\t }) {\n\t textColor(Color.WHITE)\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.compass(\n\tCompass.south()))\n offsetY(4) })\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(\"leather_bag.jpg\", {transformation: [ {width: 350, height: 250, gravity: \"custom\", crop: \"thumb\"}, {overlay: new cloudinary.Layer().publicId(\"black_bar\"), width: \"1.0\", height: \"0.1\", flags: \"relative\", gravity: \"south\", opacity: 50}, {overlay: new cloudinary.TextLayer().fontFamily(\"Arial\").fontSize(16).fontWeight(\"bold\").text(\"Leather%20laptop%20bag\"), color: \"white\", gravity: \"south\", y: 4} ]})","codeSnippet":"$.cloudinary.image(\"leather_bag.jpg\", {transformation: [\n {width: 350, height: 250, gravity: \"custom\", crop: \"thumb\"},\n {overlay: new cloudinary.Layer().publicId(\"black_bar\"), width: \"1.0\", height: \"0.1\", flags: \"relative\", gravity: \"south\", opacity: 50},\n {overlay: new cloudinary.TextLayer().fontFamily(\"Arial\").fontSize(16).fontWeight(\"bold\").text(\"Leather%20laptop%20bag\"), color: \"white\", gravity: \"south\", y: 4}\n ]})","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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(250)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"black_bar\").transformation(\n new Transformation()\n .resize(scale().width(\"1.0\").height(0.1).relative())\n .adjust(opacity(50))\n )\n ).position(new Position().gravity(compass(\"south\")))\n )\n .overlay(\n source(\n text(\n \"Leather laptop bag\",\n new TextStyle(\"Arial\", 16).fontWeight(\"bold\")\n ).textColor(\"white\")\n ).position(\n new Position()\n .gravity(compass(\"south\"))\n .offsetY(4)\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(250)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"black_bar\").transformation(\n new Transformation()\n .resize(scale().width(\"1.0\").height(0.1).relative())\n .adjust(opacity(50))\n )\n ).position(new Position().gravity(compass(\"south\")))\n )\n .overlay(\n source(\n text(\n \"Leather laptop bag\",\n new TextStyle(\"Arial\", 16).fontWeight(\"bold\")\n ).textColor(\"white\")\n ).position(\n new Position()\n .gravity(compass(\"south\"))\n .offsetY(4)\n )\n );","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/w_350,h_250,g_custom,c_thumb\/l_black_bar,w_1.0,h_0.1,fl_relative,g_south,o_50\/l_text:Arial_16_bold:Leather%20laptop%20bag,co_white,g_south,y_4\/leather_bag.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[{"width":"350","height":"250","gravity":"custom","crop_mode":"thumb"},{"overlay":"black_bar","width":"1.0","height":"0.1","flags":"relative","gravity":"south","opacity":"50"},{"overlay":"text:Arial_16_bold:Leather laptop bag","color":"white","gravity":"south","y":"4"}],"transformation_string":"w_350,h_250,g_custom,c_thumb\/l_black_bar,w_1.0,h_0.1,fl_relative,g_south,o_50\/l_text:Arial_16_bold:Leather laptop bag,co_white,g_south,y_4","url_suffix":"","version":"","secure":true,"public_id":"leather_bag.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
在某些情况下,你可能想将多图片合并为一以便正确表示文章内容允许人民在两个人或博客文章特征图像中投票,并分享脸书多图象拼贴云性叠加能力可互接图像(甚至增强比较或竞争感,
此外,如果合并两张图片,生成图像的侧比通常会变换在某些例子中,脸书会任意剪切图片, 以切入片段, 意指它们不会像期望的那样看, 特别是如果图像小或高时裁剪或裁剪并合并成片 很容易云化图像重构裁剪
下方可以看到另一幅包上传leather_bag_gray
身份证
<\/Image>","codeSnippet":"
\n\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(\"leather_bag_gray.jpg\");","codeSnippet":"new CloudinaryImage(\"leather_bag_gray.jpg\");","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\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(\"leather_bag_gray.jpg\");","codeSnippet":"new CloudinaryImage(\"leather_bag_gray.jpg\");","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":"
<\/cl-image>","codeSnippet":"
\n\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(\"leather_bag_gray.jpg\");","codeSnippet":"new CloudinaryImage(\"leather_bag_gray.jpg\");","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('leather_bag_gray.jpg').toHtml();","codeSnippet":"cloudinary.imageTag('leather_bag_gray.jpg').toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"leather_bag_gray.jpg\").image()","codeSnippet":"CloudinaryImage(\"leather_bag_gray.jpg\").image()","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('leather_bag_gray.jpg'));","codeSnippet":"(new ImageTag('leather_bag_gray.jpg'));","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"leather_bag_gray.jpg\")","codeSnippet":"cl_image_tag(\"leather_bag_gray.jpg\")","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().imageTag(\"leather_bag_gray.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().imageTag(\"leather_bag_gray.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"leather_bag_gray.jpg\")","codeSnippet":"cl_image_tag(\"leather_bag_gray.jpg\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.BuildImageTag(\"leather_bag_gray.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.BuildImageTag(\"leather_bag_gray.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('leather_bag_gray.jpg').transformation(Transformation());","codeSnippet":"cloudinary.image('leather_bag_gray.jpg').transformation(Transformation());","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().generate(\"leather_bag_gray.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().generate(\"leather_bag_gray.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().generate(\"leather_bag_gray.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().generate(\"leather_bag_gray.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('leather_bag_gray.jpg').transformation(Transformation());","codeSnippet":"cloudinary.image('leather_bag_gray.jpg').transformation(Transformation());","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag_gray.jpg\") \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag_gray.jpg\") \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(\"leather_bag_gray.jpg\")","codeSnippet":"$.cloudinary.image(\"leather_bag_gray.jpg\")","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(\"leather_bag_gray.jpg\");","codeSnippet":"new CloudinaryImage(\"leather_bag_gray.jpg\");","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/leather_bag_gray.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[],"transformation_string":"","url_suffix":"","version":"","secure":true,"public_id":"leather_bag_gray.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
现在我们可以使用云形图像叠加动态生成两个包图像,并可在网页上比较URL合并图像应用元HTML标签优化脸谱分享
<\/Image>","codeSnippet":"
\n\t
\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(600)\n .height(700)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"leather_bag_gray\").transformation(\n new Transformation().resize(fill().width(600).height(700))\n )\n ).position(\n new Position()\n .gravity(compass(\"west\"))\n .offsetX(600)\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(600)\n .height(700)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"leather_bag_gray\").transformation(\n new Transformation().resize(fill().width(600).height(700))\n )\n ).position(\n new Position()\n .gravity(compass(\"west\"))\n .offsetX(600)\n )\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\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(600)\n .height(700)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"leather_bag_gray\").transformation(\n new Transformation().resize(fill().width(600).height(700))\n )\n ).position(\n new Position()\n .gravity(compass(\"west\"))\n .offsetX(600)\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(600)\n .height(700)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"leather_bag_gray\").transformation(\n new Transformation().resize(fill().width(600).height(700))\n )\n ).position(\n new Position()\n .gravity(compass(\"west\"))\n .offsetX(600)\n )\n );","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":"
<\/cl-transformation>
<\/cl-transformation> <\/cl-image>","codeSnippet":"
\n\t
\n\t<\/cl-transformation>\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(600)\n .height(700)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"leather_bag_gray\").transformation(\n new Transformation().resize(fill().width(600).height(700))\n )\n ).position(\n new Position()\n .gravity(compass(\"west\"))\n .offsetX(600)\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(600)\n .height(700)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"leather_bag_gray\").transformation(\n new Transformation().resize(fill().width(600).height(700))\n )\n ).position(\n new Position()\n .gravity(compass(\"west\"))\n .offsetX(600)\n )\n );","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('leather_bag.jpg', {transformation: [ {width: 600, height: 700, gravity: \"custom\", crop: \"thumb\"}, {overlay: new cloudinary.Layer().publicId(\"leather_bag_gray\"), width: 600, height: 700, x: 600, gravity: \"west\", crop: \"fill\"} ]}).toHtml();","codeSnippet":"cloudinary.imageTag('leather_bag.jpg', {transformation: [\n {width: 600, height: 700, gravity: \"custom\", crop: \"thumb\"},\n {overlay: new cloudinary.Layer().publicId(\"leather_bag_gray\"), width: 600, height: 700, x: 600, gravity: \"west\", crop: \"fill\"}\n ]}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image(transformation=[ {'width': 600, 'height': 700, 'gravity': \"custom\", 'crop': \"thumb\"}, {'overlay': \"leather_bag_gray\", 'width': 600, 'height': 700, 'x': 600, 'gravity': \"west\", 'crop': \"fill\"} ])","codeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image(transformation=[\n {'width': 600, 'height': 700, 'gravity': \"custom\", 'crop': \"thumb\"},\n {'overlay': \"leather_bag_gray\", 'width': 600, 'height': 700, 'x': 600, 'gravity': \"west\", 'crop': \"fill\"}\n ])","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(600)\n->height(700)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\n\t)\n\t->overlay(Overlay::source(\n\tSource::image(\"leather_bag_gray\")\n\t->transformation((new Transformation())\n\t->resize(Resize::fill()->width(600)\n->height(700)))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::compass(\n\tCompass::west()))\n->offsetX(600))\n\t);","codeSnippet":"(new ImageTag('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(600)\n->height(700)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\n\t)\n\t->overlay(Overlay::source(\n\tSource::image(\"leather_bag_gray\")\n\t->transformation((new Transformation())\n\t->resize(Resize::fill()->width(600)\n->height(700)))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::compass(\n\tCompass::west()))\n->offsetX(600))\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(\"leather_bag.jpg\", array(\"transformation\"=>array( array(\"width\"=>600, \"height\"=>700, \"gravity\"=>\"custom\", \"crop\"=>\"thumb\"), array(\"overlay\"=>\"leather_bag_gray\", \"width\"=>600, \"height\"=>700, \"x\"=>600, \"gravity\"=>\"west\", \"crop\"=>\"fill\") )))","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", array(\"transformation\"=>array(\n array(\"width\"=>600, \"height\"=>700, \"gravity\"=>\"custom\", \"crop\"=>\"thumb\"),\n array(\"overlay\"=>\"leather_bag_gray\", \"width\"=>600, \"height\"=>700, \"x\"=>600, \"gravity\"=>\"west\", \"crop\"=>\"fill\")\n )))","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().width(600).height(700).gravity(\"custom\").crop(\"thumb\").chain() .overlay(new Layer().publicId(\"leather_bag_gray\")).width(600).height(700).x(600).gravity(\"west\").crop(\"fill\")).imageTag(\"leather_bag.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation()\n .width(600).height(700).gravity(\"custom\").crop(\"thumb\").chain()\n .overlay(new Layer().publicId(\"leather_bag_gray\")).width(600).height(700).x(600).gravity(\"west\").crop(\"fill\")).imageTag(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"leather_bag.jpg\", :transformation=>[ {:width=>600, :height=>700, :gravity=>\"custom\", :crop=>\"thumb\"}, {:overlay=>\"leather_bag_gray\", :width=>600, :height=>700, :x=>600, :gravity=>\"west\", :crop=>\"fill\"} ])","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", :transformation=>[\n {:width=>600, :height=>700, :gravity=>\"custom\", :crop=>\"thumb\"},\n {:overlay=>\"leather_bag_gray\", :width=>600, :height=>700, :x=>600, :gravity=>\"west\", :crop=>\"fill\"}\n ])","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().Width(600).Height(700).Gravity(\"custom\").Crop(\"thumb\").Chain() .Overlay(new Layer().PublicId(\"leather_bag_gray\")).Width(600).Height(700).X(600).Gravity(\"west\").Crop(\"fill\")).BuildImageTag(\"leather_bag.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation()\n .Width(600).Height(700).Gravity(\"custom\").Crop(\"thumb\").Chain()\n .Overlay(new Layer().PublicId(\"leather_bag_gray\")).Width(600).Height(700).X(600).Gravity(\"west\").Crop(\"fill\")).BuildImageTag(\"leather_bag.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(600)\n.height(700)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.overlay(Overlay.source(\n\tSource.image(\"leather_bag_gray\")\n\t.transformation(new Transformation()\n\t.resize(Resize.fill().width(600)\n.height(700)))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.compass(\n\tCompass.west()))\n.offsetX(600))\n\t));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(600)\n.height(700)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.overlay(Overlay.source(\n\tSource.image(\"leather_bag_gray\")\n\t.transformation(new Transformation()\n\t.resize(Resize.fill().width(600)\n.height(700)))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.compass(\n\tCompass.west()))\n.offsetX(600))\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().setWidth(600).setHeight(700).setGravity(\"custom\").setCrop(\"thumb\").chain() .setOverlay(\"leather_bag_gray\").setWidth(600).setHeight(700).setX(600).setGravity(\"west\").setCrop(\"fill\")).generate(\"leather_bag.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()\n .setWidth(600).setHeight(700).setGravity(\"custom\").setCrop(\"thumb\").chain()\n .setOverlay(\"leather_bag_gray\").setWidth(600).setHeight(700).setX(600).setGravity(\"west\").setCrop(\"fill\")).generate(\"leather_bag.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().width(600).height(700).gravity(\"custom\").crop(\"thumb\").chain() .overlay(new Layer().publicId(\"leather_bag_gray\")).width(600).height(700).x(600).gravity(\"west\").crop(\"fill\")).generate(\"leather_bag.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation()\n .width(600).height(700).gravity(\"custom\").crop(\"thumb\").chain()\n .overlay(new Layer().publicId(\"leather_bag_gray\")).width(600).height(700).x(600).gravity(\"west\").crop(\"fill\")).generate(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(600)\n.height(700)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.overlay(Overlay.source(\n\tSource.image(\"leather_bag_gray\")\n\t.transformation(new Transformation()\n\t.resize(Resize.fill().width(600)\n.height(700)))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.compass(\n\tCompass.west()))\n.offsetX(600))\n\t));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(600)\n.height(700)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.overlay(Overlay.source(\n\tSource.image(\"leather_bag_gray\")\n\t.transformation(new Transformation()\n\t.resize(Resize.fill().width(600)\n.height(700)))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.compass(\n\tCompass.west()))\n.offsetX(600))\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(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(600)\n height(700)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t })\n\t overlay(Overlay.source(\n\tSource.image(\"leather_bag_gray\") {\n\t transformation(Transformation {\n\t resize(Resize.fill() { width(600)\n height(700) }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.compass(\n\tCompass.west()))\n offsetX(600) })\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(600)\n height(700)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t })\n\t overlay(Overlay.source(\n\tSource.image(\"leather_bag_gray\") {\n\t transformation(Transformation {\n\t resize(Resize.fill() { width(600)\n height(700) }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.compass(\n\tCompass.west()))\n offsetX(600) })\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(\"leather_bag.jpg\", {transformation: [ {width: 600, height: 700, gravity: \"custom\", crop: \"thumb\"}, {overlay: new cloudinary.Layer().publicId(\"leather_bag_gray\"), width: 600, height: 700, x: 600, gravity: \"west\", crop: \"fill\"} ]})","codeSnippet":"$.cloudinary.image(\"leather_bag.jpg\", {transformation: [\n {width: 600, height: 700, gravity: \"custom\", crop: \"thumb\"},\n {overlay: new cloudinary.Layer().publicId(\"leather_bag_gray\"), width: 600, height: 700, x: 600, gravity: \"west\", crop: \"fill\"}\n ]})","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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(600)\n .height(700)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"leather_bag_gray\").transformation(\n new Transformation().resize(fill().width(600).height(700))\n )\n ).position(\n new Position()\n .gravity(compass(\"west\"))\n .offsetX(600)\n )\n );","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(600)\n .height(700)\n .gravity(focusOn(custom()))\n )\n .overlay(\n source(\n image(\"leather_bag_gray\").transformation(\n new Transformation().resize(fill().width(600).height(700))\n )\n ).position(\n new Position()\n .gravity(compass(\"west\"))\n .offsetX(600)\n )\n );","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/w_600,h_700,c_thumb,g_custom\/l_leather_bag_gray,w_600,h_700,c_fill,x_600,g_west\/leather_bag.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[{"width":"600","height":"700","crop_mode":"thumb","gravity":"custom"},{"overlay":"leather_bag_gray","width":"600","height":"700","crop_mode":"fill","x":"600","gravity":"west"}],"transformation_string":"w_600,h_700,c_thumb,g_custom\/l_leather_bag_gray,w_600,h_700,c_fill,x_600,g_west","url_suffix":"","version":"","secure":true,"public_id":"leather_bag.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
用户对美景照片的兴趣更大通过让照片以更强、更锐色和色平衡提高目光,可以增强用户参与度并可能导致转换云化后,通过设置颜色饱和度可增加颜色饱和度效果学
变换参数饱和度
带定饱和度饱和度:80
)自动平衡对比并锐化照片
参差如下:
<\/Image>","codeSnippet":"
\n\t
\n\t
\n\t
\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(350)\n .gravity(focusOn(custom()))\n )\n .adjust(autoContrast())\n .adjust(saturation().level(80))\n .adjust(sharpen());","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(350)\n .gravity(focusOn(custom()))\n )\n .adjust(autoContrast())\n .adjust(saturation().level(80))\n .adjust(sharpen());","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\t
\n\t
\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(350)\n .gravity(focusOn(custom()))\n )\n .adjust(autoContrast())\n .adjust(saturation().level(80))\n .adjust(sharpen());","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(350)\n .gravity(focusOn(custom()))\n )\n .adjust(autoContrast())\n .adjust(saturation().level(80))\n .adjust(sharpen());","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":"
<\/cl-transformation>
<\/cl-transformation>
<\/cl-transformation>
<\/cl-transformation> <\/cl-image>","codeSnippet":"
\n\t
\n\t<\/cl-transformation>\n\t
\n\t<\/cl-transformation>\n\t
\n\t<\/cl-transformation>\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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(350)\n .gravity(focusOn(custom()))\n )\n .adjust(autoContrast())\n .adjust(saturation().level(80))\n .adjust(sharpen());","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(350)\n .gravity(focusOn(custom()))\n )\n .adjust(autoContrast())\n .adjust(saturation().level(80))\n .adjust(sharpen());","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('leather_bag.jpg', {transformation: [ {gravity: \"custom\", height: 350, width: 350, crop: \"thumb\"}, {effect: \"auto_contrast\"}, {effect: \"saturation:80\"}, {effect: \"sharpen\"} ]}).toHtml();","codeSnippet":"cloudinary.imageTag('leather_bag.jpg', {transformation: [\n {gravity: \"custom\", height: 350, width: 350, crop: \"thumb\"},\n {effect: \"auto_contrast\"},\n {effect: \"saturation:80\"},\n {effect: \"sharpen\"}\n ]}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image(transformation=[ {'gravity': \"custom\", 'height': 350, 'width': 350, 'crop': \"thumb\"}, {'effect': \"auto_contrast\"}, {'effect': \"saturation:80\"}, {'effect': \"sharpen\"} ])","codeSnippet":"CloudinaryImage(\"leather_bag.jpg\").image(transformation=[\n {'gravity': \"custom\", 'height': 350, 'width': 350, 'crop': \"thumb\"},\n {'effect': \"auto_contrast\"},\n {'effect': \"saturation:80\"},\n {'effect': \"sharpen\"}\n ])","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(350)\n->height(350)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\n\t)\n\t->adjust(Adjust::autoContrast())\n\t->adjust(Adjust::saturation()->level(80))\n\t->adjust(Adjust::sharpen());","codeSnippet":"(new ImageTag('leather_bag.jpg'))\n\t->resize(Resize::thumbnail()->width(350)\n->height(350)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::custom()))\n\t)\n\t->adjust(Adjust::autoContrast())\n\t->adjust(Adjust::saturation()->level(80))\n\t->adjust(Adjust::sharpen());","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"leather_bag.jpg\", array(\"transformation\"=>array( array(\"gravity\"=>\"custom\", \"height\"=>350, \"width\"=>350, \"crop\"=>\"thumb\"), array(\"effect\"=>\"auto_contrast\"), array(\"effect\"=>\"saturation:80\"), array(\"effect\"=>\"sharpen\") )))","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", array(\"transformation\"=>array(\n array(\"gravity\"=>\"custom\", \"height\"=>350, \"width\"=>350, \"crop\"=>\"thumb\"),\n array(\"effect\"=>\"auto_contrast\"),\n array(\"effect\"=>\"saturation:80\"),\n array(\"effect\"=>\"sharpen\")\n )))","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().gravity(\"custom\").height(350).width(350).crop(\"thumb\").chain() .effect(\"auto_contrast\").chain() .effect(\"saturation:80\").chain() .effect(\"sharpen\")).imageTag(\"leather_bag.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation()\n .gravity(\"custom\").height(350).width(350).crop(\"thumb\").chain()\n .effect(\"auto_contrast\").chain()\n .effect(\"saturation:80\").chain()\n .effect(\"sharpen\")).imageTag(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"leather_bag.jpg\", :transformation=>[ {:gravity=>\"custom\", :height=>350, :width=>350, :crop=>\"thumb\"}, {:effect=>\"auto_contrast\"}, {:effect=>\"saturation:80\"}, {:effect=>\"sharpen\"} ])","codeSnippet":"cl_image_tag(\"leather_bag.jpg\", :transformation=>[\n {:gravity=>\"custom\", :height=>350, :width=>350, :crop=>\"thumb\"},\n {:effect=>\"auto_contrast\"},\n {:effect=>\"saturation:80\"},\n {:effect=>\"sharpen\"}\n ])","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().Gravity(\"custom\").Height(350).Width(350).Crop(\"thumb\").Chain() .Effect(\"auto_contrast\").Chain() .Effect(\"saturation:80\").Chain() .Effect(\"sharpen\")).BuildImageTag(\"leather_bag.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation()\n .Gravity(\"custom\").Height(350).Width(350).Crop(\"thumb\").Chain()\n .Effect(\"auto_contrast\").Chain()\n .Effect(\"saturation:80\").Chain()\n .Effect(\"sharpen\")).BuildImageTag(\"leather_bag.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(350)\n.height(350)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.adjust(Adjust.autoContrast())\n\t.adjust(Adjust.saturation().level(80))\n\t.adjust(Adjust.sharpen()));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(350)\n.height(350)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.adjust(Adjust.autoContrast())\n\t.adjust(Adjust.saturation().level(80))\n\t.adjust(Adjust.sharpen()));","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().setGravity(\"custom\").setHeight(350).setWidth(350).setCrop(\"thumb\").chain() .setEffect(\"auto_contrast\").chain() .setEffect(\"saturation:80\").chain() .setEffect(\"sharpen\")).generate(\"leather_bag.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()\n .setGravity(\"custom\").setHeight(350).setWidth(350).setCrop(\"thumb\").chain()\n .setEffect(\"auto_contrast\").chain()\n .setEffect(\"saturation:80\").chain()\n .setEffect(\"sharpen\")).generate(\"leather_bag.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().gravity(\"custom\").height(350).width(350).crop(\"thumb\").chain() .effect(\"auto_contrast\").chain() .effect(\"saturation:80\").chain() .effect(\"sharpen\")).generate(\"leather_bag.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation()\n .gravity(\"custom\").height(350).width(350).crop(\"thumb\").chain()\n .effect(\"auto_contrast\").chain()\n .effect(\"saturation:80\").chain()\n .effect(\"sharpen\")).generate(\"leather_bag.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(350)\n.height(350)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.adjust(Adjust.autoContrast())\n\t.adjust(Adjust.saturation().level(80))\n\t.adjust(Adjust.sharpen()));","codeSnippet":"cloudinary.image('leather_bag.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(350)\n.height(350)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t)\n\t.adjust(Adjust.autoContrast())\n\t.adjust(Adjust.saturation().level(80))\n\t.adjust(Adjust.sharpen()));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(350)\n height(350)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t })\n\t adjust(Adjust.autoContrast())\n\t adjust(Adjust.saturation() { level(80) })\n\t adjust(Adjust.sharpen()) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"leather_bag.jpg\")\n\t resize(Resize.thumbnail() { width(350)\n height(350)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.custom()))\n\t })\n\t adjust(Adjust.autoContrast())\n\t adjust(Adjust.saturation() { level(80) })\n\t adjust(Adjust.sharpen()) \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(\"leather_bag.jpg\", {transformation: [ {gravity: \"custom\", height: 350, width: 350, crop: \"thumb\"}, {effect: \"auto_contrast\"}, {effect: \"saturation:80\"}, {effect: \"sharpen\"} ]})","codeSnippet":"$.cloudinary.image(\"leather_bag.jpg\", {transformation: [\n {gravity: \"custom\", height: 350, width: 350, crop: \"thumb\"},\n {effect: \"auto_contrast\"},\n {effect: \"saturation:80\"},\n {effect: \"sharpen\"}\n ]})","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(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(350)\n .gravity(focusOn(custom()))\n )\n .adjust(autoContrast())\n .adjust(saturation().level(80))\n .adjust(sharpen());","codeSnippet":"new CloudinaryImage(\"leather_bag.jpg\")\n .resize(\n thumbnail()\n .width(350)\n .height(350)\n .gravity(focusOn(custom()))\n )\n .adjust(autoContrast())\n .adjust(saturation().level(80))\n .adjust(sharpen());","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/c_thumb,g_custom,h_350,w_350\/e_auto_contrast\/e_saturation:80\/e_sharpen\/leather_bag.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[{"crop_mode":"thumb","gravity":"custom","height":"350","width":"350"},{"effect":"auto_contrast"},{"effect":"saturation:80"},{"effect":"sharpen"}],"transformation_string":"c_thumb,g_custom,h_350,w_350\/e_auto_contrast\/e_saturation:80\/e_sharpen","url_suffix":"","version":"","secure":true,"public_id":"leather_bag.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
在某些情况下,最理想的可能是改变视觉结果,只供社交网络分享而不必改变网站图形设计如果网站的外观和感觉泛泛简单素养或中性,你可能希望自己的图像在脸书上出名,转而使你获得更高层次的参与除上表五大使用案例外, 由云化, 网站/产品/日志可实现各种变换,
社会网络分享现代方向越来越面向图像作为共享内容的焦点,使图像相关并吸引注意力的重要性正在增加。作出必要调整对成功分享和转换至关重要云化可动态变换并生成匹配内容并吸引社交网络用户的图像,从而提高参与度
上文讨论的所有特征均输入免费付费计划万一你还没有云型账号 欢迎你注册免费账号并试出今天