Skip to content

Commit

Permalink
Optimize thumbnail before release
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleaman committed Apr 25, 2024
1 parent 6904279 commit 8c5094a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
.ONESHELL:
.PHONY: build

# this is run to generate the files for github release
all:
cd ./src/
latexmk -pdf -xelatex -interaction=nonstopmode cv.tex
cd ..
convert ./src/cv.pdf[0] -resize 800x800 -flatten cv_thumbnail.png
convert cv_thumbnail.png -shave 1x1 -bordercolor black -border 1 cv_thumbnail.png
convert cv_thumbnail.png -bordercolor None -border 20x20 \( +clone -background black -shadow 50x5+5+5 \) -compose DstOver -composite -compose Over cv_thumbnail.png
optipng cv_thumbnail.png

build:
cd ./src/
Expand Down

0 comments on commit 8c5094a

Please # to comment.