面对来自AWS S3的图像加载问题 [英] Facing image loading issue from AWS S3

查看:146
本文介绍了面对来自AWS S3的图像加载问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在php中有API,并且在该API中我已在AWS S3中上传图像,按预期方式工作,但是从S3提取数据需要花费太多时间才能加载到移动设备上.

I have API in php and in that API I have upload images in AWS S3 is working as expected, however fetch data from S3 it takes too much time to load on a mobile device.

任何人都可以帮助我解决缓慢的图片加载问题吗?

Can any one help me to fixed slow image load issue?

我正在寻找在Android和IOS中加载快速图像的最佳方法.

I'm looking best way to load fast image in android and IOS.

注意:我没有使用任何拇指作为图像.

Note: I'm not using any thumb for image.

推荐答案

正如您所提到的,在移动设备上显示图片会花费一些时间,因为这可能是由于不同屏幕尺寸的尺寸不同所致.理想情况下,您应该期待以下选择:

As you have mentioned image on mobile is taking time as this can be due to different sizes for different screen sizes. Ideally you should look forward for following options:

1)将图像调整为目标尺寸(缩略图,预览,完整尺寸...),并针对不同的屏幕尺寸使用不同的尺寸.

1) resize the images to the target size (thumbnail, preview, full size, ...) and have different sizes for different screen sizes.

2)使用压缩来压缩您现有的图像文件

2) use compression to compress your existing image file

3)最好的选择是将CDN集成到基于云的图像加速和交付服务中.

3) Best option is to integrate CDN for Cloud-based image acceleration and delivery service.

理想情况下,使用Cloudfront之类的CDN是加速图像的第一步.

这篇关于面对来自AWS S3的图像加载问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆