Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Watermarks on Comp images

95 views
Skip to first unread message

Umut Kazdal

unread,
Feb 16, 2016, 12:36:29 PM2/16/16
to Fotolia API
Hello

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.

You can see my code below. 

<?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."' />";
?>

Andrey @ Fotolia

unread,
May 9, 2016, 2:59:41 PM5/9/16
to Fotolia API
Hi Umut,

Are you still having issues with the comp images? There is a different option for a watermark, if you use thumbnails, you can change the host part to wl.static.fotolia.com to get a watermark of the logo instead of the writing.

Andrey

Mateusz Kutyba

unread,
Jun 9, 2016, 4:45:56 AM6/9/16
to Fotolia API
For those who found this thread - not wl.static.fotolia.com but wl-static.fotolia.com
Reply all
Reply to author
Forward
0 new messages