node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป


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:

Although it mainly focuses fixing iOS Safari related issues, it can be safely used in the envionments other than iOS6.


See ./test directory.


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 (


This project is not actively maintained by the author, and finding someone can contribute as a maintainer. See .