alexkirsanoff / vinci
Simple implementation of vinci api
0.4.0
2018-08-25 13:13 UTC
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.3
This package is not auto-updated.
Last update: 2025-06-22 09:45:52 UTC
README
Simple implementation of Vinci Api
Transform your photos using of neural networks from Vinci
Before:
After:
Install via composer:
composer require alexkirsanoff/vinci
Get list of filters
$filters = Vinci::getFilters();
Get id of filter, for example a mystical filter
$filterId = $filters['mystic'];
Upload image for getting file id
$image = Image::createFromUrl('https://example.com/your_image.jpeg');
$fileId = Vinci::upload($image);
Convert image to art using file id and filter id
$art = Vinci::download($fileId, $filterId);
Display given art
$art->display();
You can also save a image, for this use:
$art->save($path);