jingdai / customize-image
customize image with php-gd
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jingdai/customize-image
Requires
- php: ^7.0
- ext-fileinfo: *
- ext-gd: *
- ext-json: *
- ext-mbstring: *
This package is auto-updated.
Last update: 2025-10-17 20:51:19 UTC
README
customize image by php-gd
install
composer require jingdai/customize-image
Usage
use Jindai\Draw; ------ $im = new Draw(); $im->createBgWithColor(200, 200, '#000000'); // or // $im->createBgWithFile('https://t.g.mg-cdn.com/uploads/static/8/201904/up_5cb419c6485d71.85611243.jpg/thumb-2-170'); $im->color = '#000000'; $im->float = 'right'; $im->addText('雷宇笛', 100, 20); $im->addRadiusImage('https://t.g.mg-cdn.com/uploads/static/8/201904/up_5cb419c6485d71.85611243.jpg/thumb-2-170', 50, 50, 50, 50, 50); return response($im->toPng(), 200, ['Content-Type' => 'image/png',]);
License
The Easy - Excel is open-sourced software licensed under the MIT license