diff --git a/pixelated/out.png b/pixelated/out.png new file mode 100644 index 0000000..96c64bc Binary files /dev/null and b/pixelated/out.png differ diff --git a/pixelated/scrambled1.png b/pixelated/scrambled1.png new file mode 100755 index 0000000..4c73c92 Binary files /dev/null and b/pixelated/scrambled1.png differ diff --git a/pixelated/scrambled2.png b/pixelated/scrambled2.png new file mode 100755 index 0000000..6a24c08 Binary files /dev/null and b/pixelated/scrambled2.png differ diff --git a/pixelated/sol.py b/pixelated/sol.py new file mode 100755 index 0000000..2905898 --- /dev/null +++ b/pixelated/sol.py @@ -0,0 +1,15 @@ +#!/home/maxime/.pyvenv/bin/python3 +from PIL import Image +import numpy as np + +p = Image.open("scrambled1.png") +q = Image.open("scrambled2.png") + +p = np.array(p) +q = np.array(q) + +print(p.shape) + +r = Image.fromarray(p + q) +r.save("out.png") +