最近Webアプリを作成したときにググった、画像表示についての備忘録です。 実現したかったのは2つ。 アップロード画像を指定領域(px)内いっぱいに表示(プレビュー) iPhone/iPad で発生する画像の傾きを修正(EXIF情報とどう向き合うか) 最低限のHTML <!DOCTYPE html> <html lang="ja"> <head> <title>タイトル</title> <meta charset="UTF-8"> <script type="text/javascript" src="js/jquery-1.12.1.min.js" ></script> <script type="text/javascript" src="js/exif.js" ></script> <script type="text/javascript" src="js/megapix-image