Slightly improve x shift

master
Maik de Kruif 2 weeks ago
parent 3f3d2d7c41
commit f11331d900
No known key found for this signature in database
GPG Key ID: DB1A8C782DD43CB3
  1. BIN
      assets/img/writeups/holiday-hack-challenge/2024/act1/hardware-hacking/part1/final-image.png
  2. 2
      content/writeups/holiday-hack-challenge/2024/act1/hardware-hacking-part1.md

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

@ -217,7 +217,7 @@ im = Image.open("assembled_image.png")
xsize, ysize = im.size
delta = 300 # amount to move x-axis
delta = 275 # amount to move x-axis
part1 = im.crop((0, 0, delta, ysize)) # take left part
part2 = im.crop((delta, 0, xsize, ysize)) # take right part

Loading…
Cancel
Save