-
Notifications
You must be signed in to change notification settings - Fork 9
Trace images in PHP
rest7 edited this page Jun 13, 2017
·
1 revision
Vectorizing PNG to EPS in PHP using free API:
<?php
$url = 'http://server.com/image.png';
$data = json_decode(file_get_contents('http://api.rest7.com/v1/raster_to_vector.php?url=' . $url . '&format=eps'));
if (@$data->success !== 1)
{
die('Failed');
}
$vec = file_get_contents($data->file);
file_put_contents('vectors.eps', $vec);