diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-01-16 20:09:44 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-01-16 20:09:44 -0800 |
commit | bf82a57959b3ca6b876ffa8945d70db44a65c991 (patch) | |
tree | 369d2e65018c2e8157a3990044589cceb5dfe749 /browse-slack | |
parent | 131b5a5652f8152562ad18a411e54d70a2ad4baa (diff) | |
download | mu-bf82a57959b3ca6b876ffa8945d70db44a65c991.tar.gz |
slack: update instructions for downloading images
Diffstat (limited to 'browse-slack')
-rw-r--r-- | browse-slack/convert_slack.py | 7 |
1 files changed, 5 insertions, 2 deletions
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 |