1
qq286735628 2015-10-19 00:04:22 +08:00 1
这是 JPEG 格式的特性,用 PS 导出的时候,勾上‘连续’即可
http://image.zhangxinxu.com/image/blog/201301/2013-01-07_181001.png 详情搜一下渐进式 JPEG |
2
lightforce 2015-10-19 00:34:42 +08:00
progressive feature
|
3
loveuqian 2015-10-19 00:49:11 +08:00 via iPhone
@qq286735628 学习了
|
4
ibremn 2015-10-19 01:03:30 +08:00
progressive/interlaced 是只由模糊变清晰,这个需要图片本身处理过,网上这种图片比较少。
一般图片默认是 baseline 的,即逐行加载。 下面这段代码可以支持 baseline/progressive/interlaced JPEG/PNG/GIF : CGImageSourceRef source = CGImageSourceCreateIncremental(NULL); while (dataArrived) { CGImageSourceUpdateData(source, (__bridge CFDataRef)data, false); if (CGImageSourceGetCount(source) > 0) { CGImageRef imageRef = CGImageSourceCreateImageAtIndex(source, 0, NULL); UIImage *image = [UIImage imageWithCGImage:imageRef scale:screenScale]; /// display } } |
5
sneezry 2015-10-19 03:10:39 +08:00 via iPhone
png 也是支持的, ps 里勾选“交错”
|
6
xuzhongzhou 2015-10-19 12:57:54 +08:00
[Concorde]( https://github.com/contentful-labs/Concorde.git) Download and decode progressive JPEGs on iOS.
|