Spaces:
Sleeping

File size: 494 Bytes
e0cd5b1
 
 
2f49e43
 
e0cd5b1
 
2f49e43
e0cd5b1
 
2f49e43
e0cd5b1
 
 
 
 
2f49e43
e0cd5b1
 
2f49e43
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from PIL import Image


def combine_bitmaps(im1, im2):
    dst = Image.new("RGB", (im1.width + im2.width, im1.height))
    dst.paste(im1, (0, 0))
    dst.paste(im2, (im1.width, 0))
    dst.save("tmp/combined_bitmap.bmp")


""" 
# Open the original .bmp file
linien_image = Image.open("assets/21.bmp")
text_image = Image.open("output/font_output.bmp")

# Combine the two images
combined_bitmap = combine_bitmaps(linien_image, text_image)

combined_bitmap.save("output/combined_output.bmp")
 """