几个公共图片cdn

June 13, 2019 默认分类

i0.wp.com

jetpack(wordpress)提供的服务,速度不错
在图片的url(不带协议)前加上i0.wp.com/i1.wp.com/之类即可(貌似必须使用https)
图片会被压缩,详情参见此处

Limitations

No cache invalidations – currently the images are cached “forever” and static assets will be tied to the public version of WordPress, Jetpack, or WooCommerce that you’re using. For images, if you want to “refresh” an image you will need to change its file name. Adding random query arguments, commonly known as cachebusters, will not work.

If there is an image you’d like us to purge, please contact us with a direct link to the file as it appears on your site. These will begin with i0.wp.com, i1.wp.com, or i2.wp.com.

We only fetch, resize, and serve gif, png, and jpg images from servers that listen on port 80 for HTTP and port 443 for HTTPS. This is about 99.99% of the web servers in the world. If you are having issues, please try using the jetpack_photon_reject_https filter.

We will not “upscale” an image in most circumstances. If your original image is 1000px wide and you ask for us to make it 5000px, we will serve you the original 1000px image. Upscaled images are usually of poor quality and we want to avoid that.

If your server takes longer than 10 seconds to upload the image to our CDN, the upload will time out and your image will appear to be broken. Try to upload a differently-named image with a smaller file size if this happens.
例如

https://i0.wp.com/ae01.alicdn.com/kf/H92f0e366f4ae43899544a4275ce6e7d4T.jpg

7ed.net

文档https://7ed.net/ias/
替换方式同上

https://i.sevencdn.com/i.imgur.com/3QrPToe.jpg

images.weserv.nl

功能丰富,文档移步https://images.weserv.nl/
最简使用https://images.weserv.nl/?url=图片url即可
说是cloudflare的cdn,国内速度不是特别快

例如

https://images.weserv.nl/?url=https://ae01.alicdn.com/kf/H92f0e366f4ae43899544a4275ce6e7d4T.jpg

姬长信api

响应速度不快

//api.isoyu.com/img-Proxy.asp?url=https://ae01.alicdn.com/kf/H92f0e366f4ae43899544a4275ce6e7d4T.jpg

//api.isoyu.com/img-Proxy.jsp?url=https://ae01.alicdn.com/kf/H92f0e366f4ae43899544a4275ce6e7d4T.jpg

//api.isoyu.com/img-Proxy.php?url=https://ae01.alicdn.com/kf/H92f0e366f4ae43899544a4275ce6e7d4T.jpg

V3EX

加速图片加载速度,支持 PNG, JPG, GIF, BMP 等格式的图片。
在原图网址前加上 b2.v3ex.com/ 即可
例如

https://b2.v3ex.com/ae01.alicdn.com/kf/H92f0e366f4ae43899544a4275ce6e7d4T.jpg

Jare

需要github登录,流量前25名会被列出来(并附上github帐号)
流量由 AWS CloudFront 分发
不介意可以使用http://www.jare.io/

实现

php.ini 文件中 "fopen wrappers" 需要被激活

<?php
header('Content-Type:image/jpeg');
echo readfile($_REQUEST['url']);
?> 

添加新评论