stock-api-sdk
stock-api-sdk copied to clipboard
PHP thumbnail size ignored due to incorrect mapping
The thumbnail size parameter is incorrect...
'[filters]' should be removed from the thumbnail_size line in order to return the correct sized thumbnail.
https://github.com/adobe/stock-api-sdk/blob/master/stock-api-libphp/src/Models/SearchParameters.php
'filters_thumbnail_size' => '[filters][thumbnail_size]',
Also, the size definitions appear different to that of the documentation.
https://github.com/adobe/stock-api-sdk/blob/master/stock-api-libphp/src/Core/Constants.php
Original...
$_searchParamsThumbSizes = [ 'MEDIUM' => 110, 'BIG' => 160, 'XL' => 500, 'XXL' => 1000, ];
As per docs...
$_searchParamsThumbSizes = [ 'SMALL' => 110, 'MEDIUM' => 160, 'LARGE' => 240, 'XL' => 500, 'XXL' => 1000, ];
The watermark appears on each image at 240px, how can we remove the thumbnail watermark as per the documentation?