diff options
author | Zach van Rijn <me@zv.io> | 2021-08-23 14:24:03 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-08-23 14:24:03 -0500 |
commit | 84c99d787dfc715c0daa38cfdad17dd654436caf (patch) | |
tree | b983464b418b1265850fa828ee8e8b3952a40f64 | |
parent | 7abd40f5990c78c143281cbfeaf7d77353b95e4f (diff) | |
download | site-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-x | publish | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |