| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 6 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 12 | function out_base64(array $args): string  | 
            ||
| 13 | { | 
            ||
| 14 | $obj = new Image($args['image'], Image::GD); // Image::IMAGICK  | 
            ||
| 15 | return '<img src="data:image/png;base64,' . $obj->crop((int) $args['width'], (int) $args['height'], (int) $args['x'], (int) $args['y'])->getBase64() . '" alt="base64_image" />'  | 
            ||
| 16 |         . '<div>input w h x y = ' . implode(' | ',  [$args['width'], $args['height'], $args['x'], $args['y']]) . '</div>'; | 
            ||
| 17 | }  | 
            ||
| 18 | |||
| 20 |