From bf82a57959b3ca6b876ffa8945d70db44a65c991 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 16 Jan 2022 20:09:44 -0800 Subject: slack: update instructions for downloading images --- browse-slack/convert_slack.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'browse-slack') diff --git a/browse-slack/convert_slack.py b/browse-slack/convert_slack.py index e365dc3b..2faf6d36 100644 --- a/browse-slack/convert_slack.py +++ b/browse-slack/convert_slack.py @@ -13,8 +13,11 @@ # for f in $(file *.jpg |grep PNG |sed 's/:.*//'); do mv -i $f $(echo $f |sed 's/\.jpg$/.png/'); done # # # mkdir ppm -# for f in *.jpg; do jpegtopnm $f |pnmtopnm -plain > ppm/$(echo $f |sed 's/\.jpg$//').ppm; done -# for f in *.png; do png2pnm -n $f > ppm/$(echo $f |sed 's/\.png$//').ppm; done +# for f in *.jpg; do jpegtopnm $f |pnmtoplainpnm > ppm/$(echo $f |sed 's/\.jpg$//').ppm; done +# for f in *.png; do pngtopnm $f |pnmtoplainpnm > ppm/$(echo $f |sed 's/\.png$//').ppm; done +# +# (Depending on your OS, you may need to replace pnmtoplainpnm with `pnmtopnm -plain`. Some places also have a pnm2pnm. +# I don't understand it either.) # # Step 3: construct a disk image out of the archives and avatars # cd .. # go back to the top-level archive directory -- cgit 1.4.1-2-gfad0