403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/3951577/root/tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/3951577/root/tmp/smi-desk.py
import numpy as np
from PIL import Image

orig = Image.open("/var/www/safemyident.de/web/img/header-safe-my-ident.png").convert("RGBA")
iso  = Image.open("/tmp/smi-shot/person-isnet-general-use.png").convert("RGBA")
W,H = orig.size
oa = np.array(orig)
ia = np.array(iso)[:,:,3].astype(np.float32)   # isnet alpha

def desk_band(start_frac, full_frac):
    y = np.arange(H).reshape(-1,1).astype(np.float32)
    y0 = start_frac*H; y1 = full_frac*H
    band = np.clip((y - y0)/(y1 - y0), 0, 1)*255.0   # 0 oben -> 255 unten
    return np.repeat(band, W, axis=1)

for start,full,tag in [(0.70,0.80,"70"),(0.76,0.86,"76")]:
    db = desk_band(start,full)
    comb = np.maximum(ia, db).astype(np.uint8)       # Union: Objekte + Tischband
    out = oa.copy(); out[:,:,3] = comb
    Image.fromarray(out,"RGBA").save(f"/tmp/smi-shot/person-desk-{tag}.png")
    print("gespeichert:", tag)

Youez - 2016 - github.com/yon3zu
LinuXploit