feat: image-converter project init

This commit is contained in:
dqnid committed 2026-01-05 14:35:11 +01:00
1 parent 20527c6369
commit 275d53d1dc
32 files changed
+573

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
from modules.raw_parser import (parse_raw_image)
if __name__ == "__main__":
parse_raw_image("./assets/foo.CR2", 2000)
@@ -0,0 +1,9 @@
from PIL import Image
def parse_raw_image(src,target_width, target_height):
rawImage = Image.open(src)
# Use the PIL raw decoder to read the data.
# the 'F;16' informs the raw decoder that we are reading
# a little endian, unsigned integer 16 bit data.
# img = Image.fromstring('L', imgSize, rawData, 'raw', 'F;16')
rawImage.save("foo.png")