“api工厂” 任何地方上传的图片,您都可以在任何有需要的场景下,读取并显示各种规格的缩略图;
以便来提升图片的加载速度,节约用户的流量成本,提升你的网站、小程序、App的流畅度;
假设你上传了一张图片,那么默认的图片路径为原图:
[https://dcdn.it120.cc/2019/10/22/b89980c3-1a73-48d9-b52d-106417b93010.jpeg](https://dcdn.it120.cc/2019/10/22/b89980c3-1a73-48d9-b52d-106417b93010.jpeg)
那么如何显示其他规格尺寸的图片么?
# 最大宽度800像素(_m)
[](https://dcdn.it120.cc/2019/10/22/b89980c3-1a73-48d9-b52d-106417b93010.jpeg)[https://dcdn.it120.cc/2019/10/22/b89980c3-1a73-48d9-b52d-106417b93010.jpeg_m](https://dcdn.it120.cc/2019/10/22/b89980c3-1a73-48d9-b52d-106417b93010.jpeg_m)
# 最大宽度600像素(_w600)
[https://dcdn.it120.cc/2019/10/22/b89980c3-1a73-48d9-b52d-106417b93010.jpeg_w600](https://dcdn.it120.cc/2019/10/22/b89980c3-1a73-48d9-b52d-106417b93010.jpeg_w600)
# 最大宽度300像素(_w300)
[https://dcdn.it120.cc/2019/10/22/b89980c3-1a73-48d9-b52d-106417b93010.jpeg_w300](https://dcdn.it120.cc/2019/10/22/b89980c3-1a73-48d9-b52d-106417b93010.jpeg_w300)
_如果你有其他尺寸要求,请在下方留言_