Files
NJU_PA/navy-apps/apps/nslider/slides/convert.sh
tracer-ics2023 60d5332033 > compile NEMU
221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 19:51:16 up 7 days, 19:51,  1 user,  load average: 0.13, 0.21, 0.18
2024-09-25 19:51:16 +08:00

11 lines
259 B
Bash

#!/bin/bash
# sudo vim /etc/ImageMagick-6/policy.xml
convert slides.pdf \
-sharpen "0x1.0" \
-type truecolor -resize 400x300\! slides.bmp
mkdir -p $NAVY_HOME/fsimg/share/slides/
rm $NAVY_HOME/fsimg/share/slides/*
mv *.bmp $NAVY_HOME/fsimg/share/slides/