显示aW3Techs调查74%网站图片均以JPEG或PNG格式并有良好理由:这些图片在所有浏览器上都很好地显示数个更新图像格式值得深思,WebP就是前导例子并相应将图像重量降低约30% 并减少网站或本地应用加载时间
WebP是一个图像格式由Google开发, 特别是高效在线加载图片,WebP压缩图片平均比JPEG高30%质量无损WebP文件可用无损压缩或损压缩保存值得注意的是WebP无损图像比PNG小26%
WebP工作Chrome Android和Opera浏览器唯一能阻阻广泛采行格式另一方面,鉴于Chrome使用量在过去几年中持续上升81%截至2019年7月W3学校调查优化图片显示
Android系统由Google开发WebP对Android效果良好具体地说:
Android项目中WebP图像阅读显示程序下载Webp库,Android项目中创建ii文件夹,并复制libwep内容并加进i/Android.mk必备配置成功编译后,你将获取libwebp.jar,它应载入项目构建路径
并用iOS制作WebP图片库libwebibwebp预编译二进制iOS或as源码.
WebP支持下列图像特征:
- 损耗或无损压缩
- 透明性
- 贝斯特2200娱乐可扩展元数据平台元数据
- 国际色联简介
- 动画
- 颜色空间*LossyWebP完全使用8bitYUV420格式免损WBP完全使用RGBA格式
JPEG、PNG和GIF图片对比WEP实例
JPEG->WebP质量:80
JPEG(15KB)
WebP(10KB)
PNG->WEP透明图像)
PNG(55KB)
WebP(39KB)
GIF->WebP质量80动画)
GIF(2.23MB)
动画WebP(887KB)
使用WebP图像格式的一个方法就是添加HTML5
浏览器然后根据指定的源类型下载第一张图像,在此例WebP假设它支持该格式面向不识别浏览器
以多图像为例,不为每个图像指定WebP变量,而是利用云形自动化能力云式免费账号)像这个
上传图像到云化后,向图像URL添加参数引导云化响应性显示图像最优格式图片请求发自 Chrome或Opera时,云化格式转换为WebP
云化响应向Firefox浏览器提供JPEG格式图像和JPEG-XR格式InternetExplorer浏览器
更多细节见相关文档.
<\/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(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","codeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","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(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","codeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","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(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","codeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('dog2.jpg', {width: 500, height: 333, quality: \"auto\", crop: \"fill\", fetchFormat: \"auto\"}).toHtml();","codeSnippet":"cloudinary.imageTag('dog2.jpg', {width: 500, height: 333, quality: \"auto\", crop: \"fill\", fetchFormat: \"auto\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"dog2.jpg\").image(width=500, height=333, quality=\"auto\", crop=\"fill\", fetch_format=\"auto\")","codeSnippet":"CloudinaryImage(\"dog2.jpg\").image(width=500, height=333, quality=\"auto\", crop=\"fill\", fetch_format=\"auto\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('dog2.jpg'))\n\t->resize(Resize::fill()->width(500)\n->height(333))\n\t->delivery(Delivery::format(\n\tFormat::auto()))\n\t->delivery(Delivery::quality(\n\tQuality::auto()));","codeSnippet":"(new ImageTag('dog2.jpg'))\n\t->resize(Resize::fill()->width(500)\n->height(333))\n\t->delivery(Delivery::format(\n\tFormat::auto()))\n\t->delivery(Delivery::quality(\n\tQuality::auto()));","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"dog2.jpg\", array(\"width\"=>500, \"height\"=>333, \"quality\"=>\"auto\", \"crop\"=>\"fill\", \"fetch_format\"=>\"auto\"))","codeSnippet":"cl_image_tag(\"dog2.jpg\", array(\"width\"=>500, \"height\"=>333, \"quality\"=>\"auto\", \"crop\"=>\"fill\", \"fetch_format\"=>\"auto\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().width(500).height(333).quality(\"auto\").crop(\"fill\").fetchFormat(\"auto\")).imageTag(\"dog2.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().width(500).height(333).quality(\"auto\").crop(\"fill\").fetchFormat(\"auto\")).imageTag(\"dog2.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"dog2.jpg\", :width=>500, :height=>333, :quality=>\"auto\", :crop=>\"fill\", :fetch_format=>:auto)","codeSnippet":"cl_image_tag(\"dog2.jpg\", :width=>500, :height=>333, :quality=>\"auto\", :crop=>\"fill\", :fetch_format=>:auto)","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(500).Height(333).Quality(\"auto\").Crop(\"fill\").FetchFormat(\"auto\")).BuildImageTag(\"dog2.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(500).Height(333).Quality(\"auto\").Crop(\"fill\").FetchFormat(\"auto\")).BuildImageTag(\"dog2.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('dog2.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(500)\n.height(333))\n\t.delivery(Delivery.format(\n\tFormat.auto()))\n\t.delivery(Delivery.quality(\n\tQuality.auto())));","codeSnippet":"cloudinary.image('dog2.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(500)\n.height(333))\n\t.delivery(Delivery.format(\n\tFormat.auto()))\n\t.delivery(Delivery.quality(\n\tQuality.auto())));","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(500).setHeight(333).setQuality(\"auto\").setCrop(\"fill\").setFetchFormat(\"auto\")).generate(\"dog2.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(500).setHeight(333).setQuality(\"auto\").setCrop(\"fill\").setFetchFormat(\"auto\")).generate(\"dog2.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(500).height(333).quality(\"auto\").crop(\"fill\").fetchFormat(\"auto\")).generate(\"dog2.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().width(500).height(333).quality(\"auto\").crop(\"fill\").fetchFormat(\"auto\")).generate(\"dog2.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('dog2.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(500)\n.height(333))\n\t.delivery(Delivery.format(\n\tFormat.auto()))\n\t.delivery(Delivery.quality(\n\tQuality.auto())));","codeSnippet":"cloudinary.image('dog2.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(500)\n.height(333))\n\t.delivery(Delivery.format(\n\tFormat.auto()))\n\t.delivery(Delivery.quality(\n\tQuality.auto())));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"dog2.jpg\")\n\t resize(Resize.fill() { width(500)\n height(333) })\n\t delivery(Delivery.format(\n\tFormat.auto()))\n\t delivery(Delivery.quality(\n\tQuality.auto())) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"dog2.jpg\")\n\t resize(Resize.fill() { width(500)\n height(333) })\n\t delivery(Delivery.format(\n\tFormat.auto()))\n\t delivery(Delivery.quality(\n\tQuality.auto())) \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(\"dog2.jpg\", {width: 500, height: 333, quality: \"auto\", crop: \"fill\", fetch_format: \"auto\"})","codeSnippet":"$.cloudinary.image(\"dog2.jpg\", {width: 500, height: 333, quality: \"auto\", crop: \"fill\", fetch_format: \"auto\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","codeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/w_500,h_333,f_auto,q_auto,c_fill\/dog2.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"width":"500","height":"333","format":"auto","quality":"auto","crop_mode":"fill"}],"transformation_string":"w_500,h_333,f_auto,q_auto,c_fill","url_suffix":"","version":"","secure":true,"public_id":"dog2.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
Android原创移动应用设置WebP图像格式 AndroidSDK
cloudinary.url().transformation(new Transformation().width(500).height(333).crop("fill")).fetchFormat("webp")).generate("dog.jpg")
对应URLhttps://res.www.aaaalireno.com/cld-name/image/upload/c_fill,f_webp,h_333,w_500/dog.jpg
中可手动构造
云化图像质量设置定义损耗压缩深度,也影响媒体终极外观寻找图像甜点需要测试周期,例如通过将质量水平定为80和90校验图像减重并判定哪些设置更符合标准
为了避免曲解每种图像最优质量设置,使用云性q_aut
选项,无可置疑地为您执行作业细节阅读此极佳文章内容.
自动化选择图像格式和质量级深入微调搭建并保存带宽,根据交付法设置视觉质量水平例举,留置默认“好”级q_aut:良好
面向网站并设置生态学
级q_aut:生态
)本地移动应用
图片URL包含网站自动设置
<\/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(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","codeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","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(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","codeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","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(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","codeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('dog2.jpg', {width: 500, height: 333, quality: \"auto\", crop: \"fill\", fetchFormat: \"auto\"}).toHtml();","codeSnippet":"cloudinary.imageTag('dog2.jpg', {width: 500, height: 333, quality: \"auto\", crop: \"fill\", fetchFormat: \"auto\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"dog2.jpg\").image(width=500, height=333, quality=\"auto\", crop=\"fill\", fetch_format=\"auto\")","codeSnippet":"CloudinaryImage(\"dog2.jpg\").image(width=500, height=333, quality=\"auto\", crop=\"fill\", fetch_format=\"auto\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('dog2.jpg'))\n\t->resize(Resize::fill()->width(500)\n->height(333))\n\t->delivery(Delivery::format(\n\tFormat::auto()))\n\t->delivery(Delivery::quality(\n\tQuality::auto()));","codeSnippet":"(new ImageTag('dog2.jpg'))\n\t->resize(Resize::fill()->width(500)\n->height(333))\n\t->delivery(Delivery::format(\n\tFormat::auto()))\n\t->delivery(Delivery::quality(\n\tQuality::auto()));","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"dog2.jpg\", array(\"width\"=>500, \"height\"=>333, \"quality\"=>\"auto\", \"crop\"=>\"fill\", \"fetch_format\"=>\"auto\"))","codeSnippet":"cl_image_tag(\"dog2.jpg\", array(\"width\"=>500, \"height\"=>333, \"quality\"=>\"auto\", \"crop\"=>\"fill\", \"fetch_format\"=>\"auto\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().width(500).height(333).quality(\"auto\").crop(\"fill\").fetchFormat(\"auto\")).imageTag(\"dog2.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().width(500).height(333).quality(\"auto\").crop(\"fill\").fetchFormat(\"auto\")).imageTag(\"dog2.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"dog2.jpg\", :width=>500, :height=>333, :quality=>\"auto\", :crop=>\"fill\", :fetch_format=>:auto)","codeSnippet":"cl_image_tag(\"dog2.jpg\", :width=>500, :height=>333, :quality=>\"auto\", :crop=>\"fill\", :fetch_format=>:auto)","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(500).Height(333).Quality(\"auto\").Crop(\"fill\").FetchFormat(\"auto\")).BuildImageTag(\"dog2.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(500).Height(333).Quality(\"auto\").Crop(\"fill\").FetchFormat(\"auto\")).BuildImageTag(\"dog2.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('dog2.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(500)\n.height(333))\n\t.delivery(Delivery.format(\n\tFormat.auto()))\n\t.delivery(Delivery.quality(\n\tQuality.auto())));","codeSnippet":"cloudinary.image('dog2.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(500)\n.height(333))\n\t.delivery(Delivery.format(\n\tFormat.auto()))\n\t.delivery(Delivery.quality(\n\tQuality.auto())));","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(500).setHeight(333).setQuality(\"auto\").setCrop(\"fill\").setFetchFormat(\"auto\")).generate(\"dog2.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(500).setHeight(333).setQuality(\"auto\").setCrop(\"fill\").setFetchFormat(\"auto\")).generate(\"dog2.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(500).height(333).quality(\"auto\").crop(\"fill\").fetchFormat(\"auto\")).generate(\"dog2.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().width(500).height(333).quality(\"auto\").crop(\"fill\").fetchFormat(\"auto\")).generate(\"dog2.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('dog2.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(500)\n.height(333))\n\t.delivery(Delivery.format(\n\tFormat.auto()))\n\t.delivery(Delivery.quality(\n\tQuality.auto())));","codeSnippet":"cloudinary.image('dog2.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(500)\n.height(333))\n\t.delivery(Delivery.format(\n\tFormat.auto()))\n\t.delivery(Delivery.quality(\n\tQuality.auto())));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"dog2.jpg\")\n\t resize(Resize.fill() { width(500)\n height(333) })\n\t delivery(Delivery.format(\n\tFormat.auto()))\n\t delivery(Delivery.quality(\n\tQuality.auto())) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"dog2.jpg\")\n\t resize(Resize.fill() { width(500)\n height(333) })\n\t delivery(Delivery.format(\n\tFormat.auto()))\n\t delivery(Delivery.quality(\n\tQuality.auto())) \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(\"dog2.jpg\", {width: 500, height: 333, quality: \"auto\", crop: \"fill\", fetch_format: \"auto\"})","codeSnippet":"$.cloudinary.image(\"dog2.jpg\", {width: 500, height: 333, quality: \"auto\", crop: \"fill\", fetch_format: \"auto\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","codeSnippet":"new CloudinaryImage(\"dog2.jpg\")\n .resize(fill().width(500).height(333))\n .delivery(format(auto()))\n .delivery(quality(auto()));","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/w_500,h_333,c_fill,f_auto,q_auto\/dog2.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"width":"500","height":"333","crop_mode":"fill","format":"auto","quality":"auto"}],"transformation_string":"w_500,h_333,c_fill,f_auto,q_auto","url_suffix":"","version":"","secure":true,"public_id":"dog2.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
Android应用配置相同的自动化代码如下:
cloudinary.url().transformation(new Transformation().width(500).height(333).crop("fill")).fetchFormat("webp").quality("auto:eco")).generate("dog.jpg")
等值URLhttps://res.www.aaaalireno.com/cldname/image/upload/c_fill,f_webp,h_333,q_auto:eco,w_500/dog.jpg
手动管理图像具有挑战性,需要大力开发,以确保对不同尺寸图像设计响应性适应各种浏览器实现进程自动化非常合情合理,特别是自此图像现在占60-65%平均网站内容云形操作简单直觉试一试