Coder Social home page Coder Social logo

binsinger / ios-imagefile-megapixel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stomita/ios-imagefile-megapixel

0.0 1.0 0.0 4.47 MB

Fixes iOS6 Safari's image file rendering issue for large size image (over mega-pixel), which causes unexpected subsampling when drawing it in canvas.

License: MIT License

JavaScript 90.91% HTML 9.09%

ios-imagefile-megapixel's Introduction

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 stomita#34 .

ios-imagefile-megapixel's People

Contributors

stomita avatar diegocr avatar bytepan avatar emanuele-spatola avatar revolunet avatar mimo84 avatar shaefner-usgs avatar koba04 avatar jacobg avatar peerb avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.