From 27dedabde3d8b996e3c841864827f81ea206c43c Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Thu, 21 Jan 2021 13:02:27 -0500
Subject: automated rotation process
---
.gitignore | 2 ++
Makefile | 11 +++++++++--
img/2019-12-13-3.rot.jpg | Bin 99006 -> 0 bytes
3 files changed, 11 insertions(+), 2 deletions(-)
delete mode 100644 img/2019-12-13-3.rot.jpg
diff --git a/.gitignore b/.gitignore
index 80c60a7..2b17d91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,5 @@ imgs/
graph/
py/__pycache__/
*.DS_Store
+img/*.rot.jpg
+img/rot
diff --git a/Makefile b/Makefile
index 568631b..14930fd 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,8 @@ all: $(PDF)
TABLE = gen/deathtable.i gen/deathtable2.i gen/table.i gen/pvals.i
clean:
- rm -rf {report,poster,logbook}{,2}.{pdf,log} qr gen graph imgs
+ rm -rf {report,poster,logbook}{,2}.{pdf,log} qr gen graph imgs \
+ img/rot img/*.rot.jpg
.tex.pdf:
$(PDFTEX) -jobname $* $<
@@ -52,7 +53,7 @@ graph/nearest_neighbor.png report/tables.i src/conc2.i src/bullets.i
report.pdf logbook.pdf: img/2019-10-30-1.jpg img/2019-11-21-1.jpg \
img/2019-11-21-2.jpg img/2019-11-21-3.jpg img/2019-12-02-1.jpg src/conc.i \
-img/2019-12-13-1.jpg img/2019-12-13-3.rot.jpg fmt/doc.h report/tables.i
+img/2019-12-13-1.jpg img/rot fmt/doc.h report/tables.i
poster2.pdf: imgs
@@ -107,3 +108,9 @@ graph/boxplot.png: py/data2.py py/lineplot.py graph/dir
graph/lineplot.png: py/data2.py py/boxplot.py graph/dir
$(PY) py/lineplot.py
mv lineplot.png graph/
+
+img/rot:
+ for img in img/*; do \
+ magick "$${img}" -rotate 90 "$$(echo "$$img" | cut -f 1 -d '.').rot.jpg"; \
+ echo $${img}; done
+ touch img/rot
diff --git a/img/2019-12-13-3.rot.jpg b/img/2019-12-13-3.rot.jpg
deleted file mode 100644
index d0fd0d8..0000000
Binary files a/img/2019-12-13-3.rot.jpg and /dev/null differ
--
cgit