- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想建立一个包含很多图像的网站,并因此对图像进行处理,例如亚马逊,ebay,flipkart等。建议我使用Cloudinary,Imgix等服务来调整图像大小,因为最好存储每个图像的一个版本,尽管我需要多个具有不同大小的版本。我想知道这些服务的效率如何。有什么问题吗?我希望我的网站能够快速响应。我听说过这样的担忧,例如“请注意您至少将传输延迟加倍,这通常会占用完成图像操作所需的时间。
正常:最终用户->您的用户->最终用户
通过这些服务:end_user-> your_user-> you-> your_user-> end_user”
最佳答案
(免责声明:我在imgix处理开发人员关系,并将在适用于我们堆栈的情况下回答此帖子)
您完全正确地认为,对于完全未缓存的图像,将涉及更多的“跃点”来提供图像。对于第一个查看图像的用户,这可能会导致延迟稍有增加。但是,此后,图像由我们的渲染群集和全局CDN缓存,这使得基于原始图像的后续任何图像请求都更快。无论哪种方式,通过将大小正确的图像提供给浏览器而节省的字节数几乎总是超过初始请求图像所带来的额外延迟。
这是一个简单的图,显示了尚未缓存图像时的流程:
┌─────────────────┐ 4. Origin responds
│ Your Origin │ with full-size
│ (S3/web folder) │ `dogs.png` image.
└─────────────────┘
▲ │
│ │
│ │
│ ▼
3. Image is not ┌─────────────────┐ 5. imgix caches the
cached at imgix, send │ imgix │ full-size image, then
request to origin for │ │ resizes it to 300px
`dogs.png` └─────────────────┘ wide and caches that
▲ │ derivative.
│ │
│ ▼
2. Image is not ┌─────────────────┐ 6. The imgix CDN
cached at CDN, │ imgix CDN (edge │ caches the 300px wide
forward to imgix │nodes worldwide) │ variant and serves it
rendering cluster. └─────────────────┘ to the browser.
▲ │
│ │
│ │
│ ▼
1. Browser requests ┌─────────────────┐ 7. The browser
`dogs.png?w=300` │ User's Browser │ receives and renders
│ │ 300px wide `dogs.png`.
└─────────────────┘
2. The imgix CDN has ┌─────────────────┐
this variant cached, │ imgix CDN (edge │
and serves it to the │nodes worldwide) │
browser. └─────────────────┘
▲ │
│ │
│ │
│ ▼
1. Browser requests ┌─────────────────┐ 3. The browser
`dogs.png?w=300` │ User's Browser │ receives and renders
│ │ 300px wide `dogs.png`.
└─────────────────┘
3. Full-size image is ┌─────────────────┐ 4. imgix resizes the
already cached at │ imgix │ cached full-size image
imgix, no origin │ │ to 600px wide and
request needed. └─────────────────┘ caches that
▲ │ derivative.
│ │
│ ▼
2. Image is not ┌─────────────────┐ 5. The imgix CDN
cached at CDN, │ imgix CDN (edge │ caches the 600px wide
forward to imgix │nodes worldwide) │ variant and serves it
rendering cluster. └─────────────────┘ to the browser.
▲ │
│ │
│ │
│ ▼
1. Browser requests ┌─────────────────┐ 6. The browser
`dogs.png?w=600` │ User's Browser │ receives and renders
│ │ 600px wide `dogs.png`.
└─────────────────┘
关于image - Cloudinary,Imgix等服务的效率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37159599/
有没有办法将图片批量上传到我的云帐户? 我希望一次导入 100 张 3MB 的图像。 谢谢你。 最佳答案 您可以使用 Cloudinary 的上传 API 来一张一张上传图片。 Here is a s
我正在尝试进行 cloudinary 未签名上传。我有 html 中的文件标签,现在我尝试通过 JavaScript 初始化它。但是,我收到了奇妙的错误,即状态 $.cloudinary.unsign
我正在从浏览器直接向 Cloudinary 进行未签名的上传,并试图显示大型上传的进度。 我正在使用 cloudinary node library . 有没有什么方法可以在浏览器中使用 cloudi
我正在尝试将图像从 android 上传到 cloudinary,但我遇到了很多问题。我在 onCreate 方法中像这样初始化了 MediaManager: Map config = new Has
我按照教程使用 Cloudinary Widget 上传多张图片。我想使用签名上传。 https://cloudinary.com/documentation/upload_widget#signed
我已尽力使这段代码正常工作,但是,唉!肯定有什么问题。我试图列出 Cloudinary 中的所有 public_ids 。但它总是打印 null。下面是代码 - import java.util.Ha
这是一个简单的模型: 类产品(模型。模型): caption = models.CharField(max_length=1000) description=models.TextField() su
我是 cloudinary 和 Angular 的新手。我一直在寻找一种通过不使用 SDK 将图像上传到 cloudinary 的方法,因为 cloudinary 为我们提供了使用 post API
我已经在我的项目中安装了 Cloudinary sdk,但是当尝试从 sdk 创建变量时,出现以下错误 - 问题是我已经在我的项目中安装了cloudinary sdk,它位于我的“node_modul
我正在尝试基于此代码笔示例构建一个简单的 Cloudinary 图像上传:https://codepen.io/team/Cloudinary/pen/QgpyOK -- 我已经将它转换为与 fetc
有人可以告诉我如何将 Cloudinary 安装到我的 Strapi 应用程序中,我像文档所说的那样安装了插件,但该插件根本没有出现在我的项目中。谁能告诉我我做错了什么 最佳答案 Strapi 文档中
我想建立一个包含很多图像的网站,并因此对图像进行处理,例如亚马逊,ebay,flipkart等。建议我使用Cloudinary,Imgix等服务来调整图像大小,因为最好存储每个图像的一个版本,尽管我需
我正在使用 JavaScript 以未签名模式上传图像。生成的图像是空白图像,或者我可以说是填充黑色的图像。不知道出了什么问题。代码如下: var xhttp = new XMLHttpRequest
我正在实现 Cloudinary Jquery 上传。从我的文件上传网页,如果我浏览到另一个网站(google.com 或任何外部网站),然后单击浏览器上的后退按钮进入同一文件上传页面,上传将失败。
我用来将书籍封面上传到 Cloudinary 的表单上有一个 input type='file'。不过,我也希望不允许上传图像,即当表单提交时,没有向 input type='file' 提供文件。
$http({method: 'POST', url: $rootScope.CLOUDINARY_CONFIG.upload_url, data : { file : c
我正在使用 Express.js 编写 REST API。该API需要接受来自客户端的视频文件并将其上传到cloudinary。当我使用 api 将文件返回给客户端(作为测试)时,一切正常。当我尝试将
我的代码在下面。我尝试通过 java 将图像上传到 cloudinary 但没有上传它显示以下错误 Exception in thread "main" java.lang.UnknownError:
这是我第一次在这里发帖提问。我正在构建一个具有图像上传功能的 meteor 应用程序。我找到了 meteor 的 cloudinary 包 https://github.com/Lepozepo/cl
我想将图像上传到 Cloudinary,使用cordova 相机插件直接从 Ionic 中的相机拍摄。我收到代码 1 的错误,显示消息“上传预设必须在未签名上传的白名单中”。 如何解决此错误。请帮助。
我是一名优秀的程序员,十分优秀!