事の経緯 結婚したので、結婚式することにしました。 ついでに余興としてリアルタイムで写真を投稿できるスライドショーを作ってみました。 前回 結婚式のためにリアルタイムスライドショー作ってみる〜概要編〜 プログラム 全体の概要 規模が小さいので効率性はそこまで気にしてません。初心者なので、まずきちんと動くことを優先しました。 JSON生成と画像の回転 当初はシェルスクリプトで書くつもりでしたが、結局Pythonで書きました。 #!/usr/bin/env python # -*- coding: utf-8 -*- from PIL import Image from PIL.ExifTags import TAGS import os import json import collections as cl import time def get_exif_of_image(file):