I'm using a Business API and trying to display comp images on my website without the watermarks. Everytime a try to list the contents of a gallery or try to display/download comp images, images are in low resolution and they have small Fotolia texts all around. Any help will be appreciated.
<?php
$curl = curl_init($service_url);
$curl_post_data = array(
"login" => 'USERNAME',
"pass" => 'PASSWORD',
);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $curl_post_data);
$curl_response = curl_exec($curl);
curl_close($curl);
$decoded = json_decode($curl_response);
$session_token = $decoded->session_token;
print $session_token;
$id = $_GET['item_id'];
$curl = curl_init($service_url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$curl_response = curl_exec($curl);
curl_close($curl);
$decoded = json_decode($curl_response);
$image_uri = $decoded->url;
$image_width = $decoded->width;
$image_height = $decoded->height;
$comp_url = str_replace("api","MY_API_KEY:".$session_token."@api",$image_uri);
print $comp_url;
print "<img src='".$comp_url."' />";
?>