12 lines
406 B
Bash
12 lines
406 B
Bash
#!/bin/bash
|
|
python3 - <<'EOF'
|
|
from PIL import Image
|
|
im = Image.open('/mnt/f/efi/Paravis/Boot/xor/Main1.bmp').convert('RGB')
|
|
crop = im.crop((40, 470, 480, 510))
|
|
crop = crop.resize((crop.width*3, crop.height*3), Image.LANCZOS)
|
|
crop.save('/path/to/pf/KRD/crop-kaspersky.png')
|
|
crop2 = im.crop((40, 412, 480, 452)).resize((440*3, 40*3), Image.LANCZOS)
|
|
crop2.save('/path/to/pf/KRD/crop-gfm.png')
|
|
print('ok')
|
|
EOF
|