stomita/ios-imagefile-megapixel
关于
修复 iOS 6 Safari 渲染大尺寸图像文件(超过百万像素)时的问题,避免在 canvas 中绘制图像时发生意外的子采样。
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Mega pixel image rendering library for iOS6 Safari
Fixes iOS6 Safari's image file rendering issue for large size image (over mega-pixel), which causes unexpected subsampling when drawing it in canvas. By using this library, you can safely render the image with proper stretching.
About iOS Safari's resource limitation and subsampling, see following link: http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarioniPhone.html#//apple_ref/doc/uid/TP40006482-SW15
Although it mainly focuses fixing iOS Safari related issues, it can be safely used in the envionments other than iOS6.
Usage
See ./test directory.
FAQ
Q. Photos from iPhone is rotated and not in correct orientation.
A. Orientation of jpeg file is recorded in EXIF format. This library won't detect exif information automatically. To detect the information in JavaScript, use exif.js (https://github.com/jseidelin/exif-js).
Note
This project is not actively maintained by the author, and finding someone can contribute as a maintainer. See https://github.com/stomita/ios-imagefile-megapixel/issues/34 .
探索相关项目
加载中…