CURL multiport graph worked, but returns black background image


I need to embed a graph through frontend web server, and actually managed to get it through API call. However librenms returns with black background making the graph not humanly visible. I tried to inspect elements with Chrome and found that there’s a HTML style background set to black #0e0e0e.

Could help me how to modify all those HTML style because I found nothing on my webserver and also on LibreNMS itself.

Here is my curl script, pretty standard :

<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => ",10008,9995,10052,10071,10081,10099,10009,10010,10011,10012/", CURLOPT_RETURNTRANSFER => 1, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "X-Auth-Token: 2901dcdb7cde9e8415a2eecf25e5fbf6" ), )); header('Content-type: image/jpg'); $response = curl_exec($curl); curl_close($curl); echo $response; ?>

Thank you !`


90% sure all graphs have a transparent background.