Updated console build

This commit is contained in:
Mark Qvist 2024-10-06 11:46:24 +02:00
parent 3fe5affb51
commit ffb951172f
2 changed files with 13 additions and 7 deletions

View File

@ -4,9 +4,9 @@ import sys
import shutil
packages = {
"rns": "rns-0.8.1-py3-none-any.whl",
"nomadnet": "nomadnet-0.5.3-py3-none-any.whl",
"lxmf": "lxmf-0.5.4-py3-none-any.whl",
"rns": "rns-0.8.2-py3-none-any.whl",
"nomadnet": "nomadnet-0.5.4-py3-none-any.whl",
"lxmf": "lxmf-0.5.5-py3-none-any.whl",
"rnsh": "rnsh-0.1.4-py3-none-any.whl",
}
@ -174,15 +174,21 @@ mf.write(help_redirect)
mf.close()
def optimise_manual(path):
pm = 100
pm = 60
scale_imgs = [
("_images/board_rnodev2.png", pm),
("_images/board_rnode.png", pm),
("_images/board_heltec32.png", pm),
("_images/board_heltec32v20.png", pm),
("_images/board_heltec32v30.png", pm),
("_images/board_t3v21.png", pm),
("_images/board_t3v20.png", pm),
("_images/sideband_devices.webp", pm),
("_images/board_t3v10.png", pm),
("_images/board_t3s3.png", pm),
("_images/board_tbeam.png", pm),
("_images/board_tdeck.png", pm),
("_images/board_rak4631.png", pm),
("_images/board_tbeam_supreme.png", pm),
("_images/sideband_devices.webp", pm),
("_images/nomadnet_3.png", pm),
("_images/meshchat_1.webp", pm),
("_images/radio_is5ac.png", pm),
@ -195,7 +201,7 @@ def optimise_manual(path):
import shlex
for i,s in scale_imgs:
fp = path+"/"+i
resize = "convert "+fp+" -resize "+str(s)+" "+fp
resize = "convert "+fp+" -quality 25 -resize "+str(s)+" "+fp
print(resize)
subprocess.call(shlex.split(resize), stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

Binary file not shown.