aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2021-01-21 13:02:27 -0500
committerHolden Rohrer <hr@hrhr.dev>2021-01-21 13:14:55 -0500
commit27dedabde3d8b996e3c841864827f81ea206c43c (patch)
tree0c3f5ee5bf528645d9a9b881c1baa7587a57d3b6
parent47c60afd25e0919170f1b1a931d05c25896678b3 (diff)
automated rotation process
-rw-r--r--.gitignore2
-rw-r--r--Makefile11
-rw-r--r--img/2019-12-13-3.rot.jpgbin99006 -> 0 bytes
3 files changed, 11 insertions, 2 deletions
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
--- a/img/2019-12-13-3.rot.jpg
+++ /dev/null
Binary files differ