adjust image size

This commit is contained in:
Cyberes 2024-09-04 17:00:24 -06:00
parent 650cf78a65
commit aba4511e95
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ redis_client = redis.Redis(host='localhost', port=6379)
def serve_global_map(): def serve_global_map():
global_map_data = redis_client.get('global_map') global_map_data = redis_client.get('global_map')
if global_map_data is None: if global_map_data is None:
img = Image.new('RGB', (500, 300), color=(255, 255, 255)) img = Image.new('RGB', (633, 356), color=(255, 255, 255))
d = ImageDraw.Draw(img) d = ImageDraw.Draw(img)
fnt = ImageFont.load_default(size=30) fnt = ImageFont.load_default(size=30)
w, h = fnt.getbbox(NO_MAP_STR)[2:4] w, h = fnt.getbbox(NO_MAP_STR)[2:4]

View File

@ -11,4 +11,5 @@ DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )
cp "$DIR"/*.service /etc/systemd/system cp "$DIR"/*.service /etc/systemd/system
systemctl daemon-reload systemctl daemon-reload
systemctl enable --now *.service systemctl enable --now *.service
systemctl restart *.service systemctl restart *.service
systemctl status *.service