summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-08-23 14:24:03 -0500
committerZach van Rijn <me@zv.io>2021-08-23 14:24:03 -0500
commit84c99d787dfc715c0daa38cfdad17dd654436caf (patch)
treeb983464b418b1265850fa828ee8e8b3952a40f64
parent7abd40f5990c78c143281cbfeaf7d77353b95e4f (diff)
downloadsite-ng-84c99d787dfc715c0daa38cfdad17dd654436caf.tar.gz
site-ng-84c99d787dfc715c0daa38cfdad17dd654436caf.tar.bz2
site-ng-84c99d787dfc715c0daa38cfdad17dd654436caf.tar.xz
site-ng-84c99d787dfc715c0daa38cfdad17dd654436caf.zip
Dockerize 'convert' in the publish script.
-rwxr-xr-xpublish3
1 files changed, 3 insertions, 0 deletions
diff --git a/publish b/publish
index bb974d5..38c005e 100755
--- a/publish
+++ b/publish
@@ -20,11 +20,14 @@ chmod 755 ${TEMP};
##
# .psd --> .jpg ONLY in 'src/'
#
+docker run -v$(pwd):/x -w/x --rm -i alpine:3.14 <<'EOF'
+apk add imagemagick;
find ${HERE} -type f -name "*.psd" | while read k; do
f="${k#*${HERE}}";
mkdir -p "${TEMP}${f%/*}";
convert "${k}[0]" -strip "${TEMP}${f%*.psd}.jpg";
done
+EOF
##
# template injection